Date: 09/25/01
- Next message: Mail Delivery Subsystem: "[PHP-DOC] Returned mail: Cannot send message within 5 days"
- Previous message: Marco Cucinato: "[PHP-DOC] cvs: phpdoc /it/functions array.xml"
- In reply to: Ming-Chieh Lee: "[PHP-DOC] &$this?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> does anyone know what does &$this mean? I saw this on the php.net
tuturial
> for references inside a constructor.
> I thought that $this is already a reference?
> The way it was used :
> class Foo
> {
> function Foo($name)
> {
> // create a reference inside the global array $globalref
> global $globalref;
> $globalref[] = &$this;
> // set name to passed value
> $this->setName($name);
> // and put it out
> $this->echoName();
> }
> thanks for any input!
It's in the docs somewhere that this doesn't work inside a constructor.
Add a manual note to the relevant page if you think it should be noted
elsewhere too.
--Jeroen
- Next message: Mail Delivery Subsystem: "[PHP-DOC] Returned mail: Cannot send message within 5 days"
- Previous message: Marco Cucinato: "[PHP-DOC] cvs: phpdoc /it/functions array.xml"
- In reply to: Ming-Chieh Lee: "[PHP-DOC] &$this?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

