RE: [PHP] is Class::$name doable?

From: Date: Mon, 17 Jul 2000 17:12:18 +0000
Subject: RE: [PHP] is Class::$name doable?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-6935@lists.php.net to get a copy of this message
You're aware that class::function is C++ syntax? -larsw- BTW: I don't think you can call class functions directly without creating an object from it first (if that answered your question). -----Original Message----- From: Teodor Cimpoesu [mailto:teo@digiro.net] Sent: 17. juli 2000 18:36 To: php-general@lists.php.net Subject: [PHP] is Class::$name doable? Problem: * I want to call a class method by name - call_user_method() requires an object - call_user_function() doesn't like it - $name ='method'; Class::$name() doesn't work. Is there any other way to do it, or I am constrained to instantiate the class? -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#6935) next »