note 36820 deleted from language.oop by aidan

From: Date: Sat, 03 Jul 2004 14:50:36 +0000
Subject: note 36820 deleted from language.oop by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72440@lists.php.net to get a copy of this message
Note Submitter: nathan@newmediasolutions.ca ---- Under PHP Version 4.2.2 classes that do not contain variables will be considered NULL when they are initialized. class A { function A() { } } class B { var $b; function B() { } } $a = new A(); $b = new B(); print( "<br />( a == NULL ): " . ($a==NULL) ); print( "<br />( b == NULL ): " . ($b==NULL) ); The output for this will be: ( a == NULL ): 1 ( b == NULL ):

« previous php.notes (#72440) next »