Re: Thinking out loud - a continuation...

From: Date: Sat, 24 Mar 2012 18:21:55 +0000
Subject: Re: Thinking out loud - a continuation...
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  Groups: php.general 
Request: Send a blank email to php-general+get-317253@lists.php.net to get a copy of this message
[snip] > A little tweak here... a little tweak there: [/snip] > > > if( !isset( $focus[$name] ) ) > { > $focus[$name] = array > ( > 'name' => $name, > 'children' => array(), > ); > } > > $focus = &$focus[$name]['children']; > } > } > } [/snip] Bingo! We have a winner! I had already started on the $focus[$name] array as you have shown, I just hadn't figured out the &$focus[$name]['children'] part. Thank you so much Robert - you're a real asset to the PHP community!

« previous php.general (#317253) next »