Re: Thinking out loud - a continuation...

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

 



[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




[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