Re: Specific References Incident

From: Date: Fri, 11 Jan 2002 09:12:26 +0000
Subject: Re: Specific References Incident
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-80177@lists.php.net to get a copy of this message
Ken Kinder wrote:
The $this->children attribute should be an array of (references to) objects. I think somehow in the foreach ($this->children as $child) the objects are being copied, as $child->validate(); seems not to effect the original objects.
Someone just said you can use $a = &$b to make $a a reference to $b instead of a copy. Dunno if that solves you problem though, but it may be a step on the way.

« previous php.general (#80177) next »