Categories
- agile (3)
- algorithms (34)
- cheatsheets (2)
- css (29)
- download (3)
- featured (46)
- flex 3 (25)
- javascript (139)
- micro tutorial (203)
- PHP (111)
- portfolio (5)
- quiz (7)
- snippets (7)
- video (1)
- web development (168)
- zend framework (81)
Category Archives: PHP
Some PHP Tips: basename()
Here’s a quick tip: I’ve an absolute file path “/var/www/html/index.php”, but I need only the file name – index.php. So how do I get it? basename There it is: $filename = basename(’/var/www/html/index.php’); now $filename contains only “index.php”!
Using PHP’s array_diff in Algorithm Development
array_diff can be really powerful. Once you’ve to find the different elements between two arrays you’ve to use array_diff. Here’s a case when you can use it while coding a simple algorithm. The Task You’ve one array with tickets of … Continue reading
Posted in micro tutorial, PHP
Tagged array, Arrays, Computing, Control flow, Data structures, Data types, Foreach, Notation, PHP
1 Comment





