Re: Objects: Cant set object variables with refrences ...

From: Date: Tue, 11 Feb 2003 13:26:06 +0000
Subject: Re: Objects: Cant set object variables with refrences ...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-135189@lists.php.net to get a copy of this message
"Michael Kimsal" <michael@tapinternet.com> wrote in message news:3E48F708.7090901@tapinternet.com... > James wrote: > <snip> > > > > However I would like refernce semantics and the final output of this script > > to be 1000. So I changed the line to "$this->t &= $c;" and suddenly I get > > the error: "Fatal error: Call to a member function on a non-object in > > /user/sh/jmb/Project/Wiki/Public_html/test.php on line 25" > > > > Anyone have any help on what is happening? > > > $this->t = &$c; This works great. Thanks.

« previous php.general (#135189) next »