note 123432 added to function.call-user-func

From: Date: Thu, 13 Dec 2018 23:42:20 +0000
Subject: note 123432 added to function.call-user-func
Groups: php.notes 
Request: Send a blank email to php-notes+get-209895@lists.php.net to get a copy of this message
Actually, as PHP 7.0, when you want to call a static method, you must call: <?php namespace Foobar; class Foo { static public some() { echo 'Hello World!'; } } call_user_func( array( __NAMESPACE__ . '\\Foo', 'some' ) ); ?> This will output: Hello World! ---- Server IP: 208.43.231.9 Probable Submitter: 89.115.29.143 ---- Manual Page -- http://php.net/manual/en/function.call-user-func.php Edit -- https://master.php.net/note/edit/123432 Del: integrated -- https://master.php.net/note/delete/123432/integrated Del: useless -- https://master.php.net/note/delete/123432/useless Del: bad code -- https://master.php.net/note/delete/123432/bad+code Del: spam -- https://master.php.net/note/delete/123432/spam Del: non-english -- https://master.php.net/note/delete/123432/non-english Del: in docs -- https://master.php.net/note/delete/123432/in+docs Del: other reasons-- https://master.php.net/note/delete/123432 Reject -- https://master.php.net/note/reject/123432 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#209895) next »