Re: Get and object reference??
| From: | BAROILLER Pierre-Emmanuel | Date: | Sat, 19 Oct 2002 06:18:45 +0000 |
| Subject: | Re: Get and object reference?? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120586@lists.php.net to get a copy of this message | ||
Great!
Thanks :) IU was looking why the code wasn't work & I haven't seen the
instance declaration :)
>
> when you create the instance use this
> $oTest =& new test;
>
> in the constructor I do this
>
> function test() {
> GLOBAL $aFunctions;
>
> $this->sText = "A copy of the object!";
>
> /* This make a COPY of the Object, not a Reference! */
> $aFunctions['test'] =& $this;
> }
> --
> regards,
> Tom
>