News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Make Me Pulse Blog:
Tips RecursiveArrayIterator on mulitdimensional Array
February 11, 2008 @ 13:07:00

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).

0 comments voice your opinion now!
spl library standard recursiveiteratoriterator multidimensional array


blog comments powered by Disqus

Similar Posts

Community News: MySQL native driver for PHP - mysqlnd

Matthew Weir O'Phinney's Blog: Phly_Struct? no, Phly_Hash...

Pádraic Brady's Blog: OpenID library for the Zend Framework?

Smarx.com: PHP for Microsoft AJAX Library

PHPBuilder.com: Introduction to Arrays and Hashes in PHP - The ABC's of PHP Part 7


Community Events











Don't see your event here?
Let us know!


facebook install performance database release composer overview introduction opinion package framework security component unittest hhvm application language symfony2 hack podcast

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