note 77121 deleted from language.oop5 by colder
| From: | colder@php.net | Date: | Sun, 19 Aug 2007 23:38:40 +0000 |
| Subject: | note 77121 deleted from language.oop5 by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-129606@lists.php.net to get a copy of this message | ||
Note Submitter: innadiated at _g_ mail dot com
----
@deimors:
The reason is that until you use the 'new' operator to create a new instance of a class,
the $this variable can not exist within anything the class will execute before it's initialized
and as well php does not allow non-scalar values to be used to initialize object properties with the
exception of an array initialized with all scalar values.