Re: Where would you look for documentation about interface RecursiveIterator? RecursiveIteratorAggregate - suggestion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# marco-oweber@xxxxxx / 2007-02-13 11:54:41 +0100:
> 
> http://de.php.net/~helly/php/ext/spl/interfaceRecursiveIterator.html
> 
> This piece of code
> 
> ------------------------
> <?php
> $array = array(1, 2 => array(21, 22 => array(221, 222), 23 => array(231)),  
> 3);
> 
> $dir = new RecursiveIteratorIterator(new ArrayIterator($array));

untested:

$dir = new RecursiveIteratorIterator(new RecursiveArrayIterator($array));

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux