note 93294 rejected from function.call-user-func by danbrown
| From: | danbrown@php.net | Date: | Tue, 01 Sep 2009 23:07:56 +0000 |
| Subject: | note 93294 rejected from function.call-user-func by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-160137@lists.php.net to get a copy of this message | ||
Note Submitter: coyote4til7 at gmail dot com
----
As a note, as of 5.2.6 (at least on FreeBSD), the documentation is wrong.
This does not work:
call_user_func($classname .'::say_hello'); // As of 5.2.3
This does:
call_user_func(array($classname, 'say_hello'));