note 113519 added to language.oop5.static

From: Date: Thu, 24 Oct 2013 01:34:52 +0000
Subject: note 113519 added to language.oop5.static
Groups: php.notes 
Request: Send a blank email to php-notes+get-197310@lists.php.net to get a copy of this message
It should be noted that in 'Example #2', you can also call a variably defined static method as follows: <?php class Foo { public static function aStaticMethod() { // ... } } $classname = 'Foo'; $methodname = 'aStaticMethod'; $classname::{$methodname}(); // As of PHP 5.3.0 I believe ?> ---- Server IP: 69.147.83.199 Probable Submitter: 67.208.183.122 ---- Manual Page -- http://php.net/manual/en/language.oop5.static.php Edit -- https://master.php.net/note/edit/113519 Del: integrated -- https://master.php.net/note/delete/113519/integrated Del: useless -- https://master.php.net/note/delete/113519/useless Del: bad code -- https://master.php.net/note/delete/113519/bad+code Del: spam -- https://master.php.net/note/delete/113519/spam Del: non-english -- https://master.php.net/note/delete/113519/non-english Del: in docs -- https://master.php.net/note/delete/113519/in+docs Del: other reasons-- https://master.php.net/note/delete/113519 Reject -- https://master.php.net/note/reject/113519 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#197310) next »