On Fri, 2003-12-05 at 01:27, Šimon Tóth wrote:
> But how do I make an array where each of successor is also an array.
> 
> The structure should be something like this:
> $root['ID']=0;
> $root['From']="";
> $root['Subj']="";
> $root['Replays'] - ???
> 
> Each of the succesors must have same structure as $root.

$tree = array
(
    'ID'      => 0,
    'From'    => 'Wolferine',
    'Subj'    => 'Trees and shrubbery.',
    'Replies' => array
    (
        array
        (
            'ID'      => 1,
            'From'    => 'Supermon',
            'Subj'    => 'Re: Trees and shrubbery.',
            'Replies' => array
            (
            ),
        ),
        array
        (
            'ID'      => 2,
            'From'    => 'Wonder Womban',
            'Subj'    => 'Re: Trees and shrubbery.',
            'Replies' => array
            (
            ),
        ),
    ),
);

HTH,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to