note 75864 deleted from language.oop5.static by nlopess

From: Date: Tue, 19 Jun 2007 20:25:42 +0000
Subject: note 75864 deleted from language.oop5.static by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-127799@lists.php.net to get a copy of this message
Note Submitter: robotronick ---- abstract class foo1 { static function foo() { //some code } } abstract class foo2 { static function foo() { //some code } } $class = "foo1"; $class::foo(); If I try to run the above construct, I get this error: "syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM" at the line that contains "$class::foo();" Does anybody know how it is possible to solve this problem?

« previous php.notes (#127799) next »