Re: Recursion: Ugh!

From: Date: Thu, 26 May 2005 20:06:50 +0000
Subject: Re: Recursion: Ugh!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-215877@lists.php.net to get a copy of this message
Chris W. Parker wrote:
Marek Kilimajer <mailto:lists@kilimajer.net> 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.


« previous php.general (#215877) next »