note 30869 deleted from language.oop.constructor by danbrown

From: Date: Sat, 07 Nov 2009 18:58:02 +0000
Subject: note 30869 deleted from language.oop.constructor by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-162539@lists.php.net to get a copy of this message
Note Submitter: ogarbe at tf1 dot fr ---- to steffen staehle If you want your constructor to possibly not create the object class A { function A() { // ... // some error occurred $this = null; return; } } if ($a = new A()) { // success, use $a ... }

« previous php.notes (#162539) next »