Re: Thinking out loud - a continuation...

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

 



[snip]
…stuff….
[/snip]

For those interested here is where the problem seems to occur - 

$child = array
               (
                   'id'       => $id,
                   'parentId' => $pid,
                   'children' => array()
               );
               
               $children[$id][] = &$child;
               
               foreach( $parents[$pid] as &$items ){
                   foreach( $items as &$item ){   
                   	 $item['children'][$id] = &$child; // error: Cannot use string offset as an array
                   }
               }

Maybe someone will see this and know what's going on. Before the foreach $children is an array. 


[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