note 7975 added to Classes and Objects
| From: | mog dot pettersson at telia dot com | Date: | Wed, 23 Aug 2000 00:39:36 +0000 |
| Subject: | note 7975 added to Classes and Objects | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2941@lists.php.net to get a copy of this message | ||
Hi!
If my constructor function reads data from a file, how do i know if my constructor fails (ex open
the file) when doing...
$my_obj = new Obj();
I tried returning 'false' from the constructor but that doesn't work, $my_obj still
gets defined as a object.
http://www.php.net/manual/language.oop.php