[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! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php