News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

Make Me Pulse Blog:
Tips RecursiveArrayIterator on mulitdimensional Array
0 comments :: posted Monday February 11, 2008 @ 13:07:00
voice your opinion now!

On the Make Me Pulse blog, Antoine Ughetto shares a method he came up with to recurse through an array using the SPL method - the RecursiveArrayIterator method.

When we have a multidimensional array we have to make some recursives function to parse it. A simple way to get the keys and the value of this type of array is to use the SPL library of PHP.

A code example is included, parsing through a recursive array to output each of the key/value pairs it contains (and using only about five or six lines of code to do it).

tagged with: spl library standard recursiveiteratoriterator multidimensional array



PEAR job conference zendframework releases security PHP5 application book zend code package ajax pecl mysql database release cakephp framework developer

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework