note 8479 added to Classes and Objects

From: Date: Thu, 14 Sep 2000 08:40:34 +0000
Subject: note 8479 added to Classes and Objects
Groups: php.notes 
Request: Send a blank email to php-notes+get-4905@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. http://www.php.net/manual/language.oop.php

« previous php.notes (#4905) next »