Re: Create a hierarchical hash from flat source

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

 




On Jun 22, 2011, at 5:24 PM, Scott Baker wrote:

On 06/22/2011 03:17 PM, Simon J Welsh wrote:
You still need to pass the value by reference to assign_children(), so:
$new = &$leaf[$pid];
assign_children($pid,$list,&$new);

One last thing I fixed was that PHP was complaining that run-time pass
by reference was deprecated. I changed assign_children to be

function assign_children($id,$list,&$leaf)

Which solved that also!

Ah, pointers, how we love them. The bane of every CS undergrad.


--
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