Re: Storing a reference to an object in another object

From: Date: Wed, 19 Jan 2005 22:52:58 +0000
Subject: Re: Storing a reference to an object in another object
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-206786@lists.php.net to get a copy of this message
Rory McKinley wrote: > public function checkConnection() > { > return $this->admin_instance->checkConnection() WILD GUESS!!! In early days of PHP objects, you sometimes couldn't use two arrow operators with, errr, references??? So an easy way to maybe fix this and move on with your life: $admin = $this->admin_instance; return $admin->checkConnectino(); Seems kinda bogus to me, but... Hey, you're missing a ';' at the end of that line there... Hopefully not in the real code... Or maybe it's not needed before the } in this construct. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#206786) next »