Re: Thinking out loud - a continuation...
| From: | Jay Blanchard | Date: | Fri, 23 Mar 2012 19:22:59 +0000 |
| Subject: | Re: Thinking out loud - a continuation... | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-317229@lists.php.net to get a copy of this message | ||
> [snip]
>> $json = JSON_encode( $root );
> [/snip]
>
> Update on my test. This works perfectly Robert - thank you very much! But there is one small
> problem that I am trouble-shooting: it only goes one layer and doesn't progress any further. I
> suspect it is on this section of code that I am going to add some stuff to to see what is happening.
>
> if( !($parents = &$children) ){
> break;
> }
It would appear that both arrays are empty on the next cycle through so the break occurs.