note 75864 added to language.oop5.static

From: Date: Tue, 19 Jun 2007 19:51:22 +0000
Subject: note 75864 added to language.oop5.static
Groups: php.notes 
Request: Send a blank email to php-notes+get-127794@lists.php.net to get a copy of this message
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? ---- Server IP: 217.160.72.57 Probable Submitter: 88.74.140.225 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.static.php Edit -- https://master.php.net/note/edit/75864 Del: integrated -- https://master.php.net/note/delete/75864/integrated Del: useless -- https://master.php.net/note/delete/75864/useless Del: bad code -- https://master.php.net/note/delete/75864/bad+code Del: spam -- https://master.php.net/note/delete/75864/spam Del: non-english -- https://master.php.net/note/delete/75864/non-english Del: in docs -- https://master.php.net/note/delete/75864/in+docs Del: other reasons-- https://master.php.net/note/delete/75864 Reject -- https://master.php.net/note/reject/75864 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#127794) next »