Re: Recursion: Ugh!

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

 



Chris W. Parker wrote:

Marek Kilimajer <mailto:lists@xxxxxxxxxxxxx>
   on Thursday, May 26, 2005 11:35 AM said:



untested:

function display($array, $prefix = '') {
echo $prefix ':' . $array['name'] . "\n";
if(is_array($array['children']) && $array['children']) {
foreach($array['children'] as $child) {
display($child, $prefix ':' . $array['name']);
}
}
}



Thanks Marek.

I've had one suggestion off list also ...




If that is the email from me, it's not intended to be offlist. The list doesn't seem to be relay my email.

Thanks,
Chris.




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