You are here: Re: [PHP] Recursion: Ugh! « PHP « IT news, forums, messages
Re: [PHP] Recursion: Ugh!

Posted by Chris on 05/26/05 23:06

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация