note 8479 deleted from Classes and Objects by jmcastagnetto

From: Date: Thu, 14 Sep 2000 12:09:08 +0000
Subject: note 8479 deleted from Classes and Objects by jmcastagnetto
Groups: php.notes 
Request: Send a blank email to php-notes+get-4993@lists.php.net to get a copy of this message
Using php 4. the 'new' operator works with variable class names only if there are no arguments in the variable: eg. $a = "myclass"; $b = "myclass(arg1)"; $c = new $a; // ok $d = new $a(arg1); // ok $e = new $b; // fail: considers 'myclass(arg1)' as the class name.

« previous php.notes (#4993) next »