note 16129 added to language.oop.constructor
| From: | scarab at rstlib dot nsc dot ru | Date: | Wed, 17 Oct 2001 11:22:21 +0000 |
| Subject: | note 16129 added to language.oop.constructor | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-19036@lists.php.net to get a copy of this message | ||
Seems like not to be able make a return() from constructors.
Any my tries to make return() from it, and make
echo($a = new MyClass);
returns an 'object', not value, which i want to return from MyClass constructor.
wbr.,
Scarab.
--
http://www.php.net/manual/en/language.oop.constructor.php
http://master.php.net/manage/user-notes.php?action=edit+16129
http://master.php.net/manage/user-notes.php?action=delete+16129
http://master.php.net/manage/user-notes.php?action=reject+16129