On 11-06-23 12:54 PM, Tamara Temple wrote:

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(),
$new =&$leaf[$pid];

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.

Bane? I thought they were elegant :)

E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.

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

Reply via email to