note 5565 deleted from Classes and Objects by ronabop

From: Date: Thu, 17 Aug 2000 09:59:45 +0000
Subject: note 5565 deleted from Classes and Objects by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-2163@lists.php.net to get a copy of this message
How come in PHP4 (PHP/4.0b4pl1) an empty object evaluates to false, whereas in PHP3 it evaluates to true? <PRE> class a { var $b; } $object = new a; if($object) echo "<H2>Object exists</H2>"; </PRE> Where can I get some decent documentation in regard to the difference between the two versions?

« previous php.notes (#2163) next »