note 15809 added to function.call-user-func
| From: | dougqh at hotmail dot com | Date: | Wed, 03 Oct 2001 19:31:56 +0000 |
| Subject: | note 15809 added to function.call-user-func | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18530@lists.php.net to get a copy of this message | ||
If you want to call a method of class and do not have an instance of the class use the following...
call_user_func( array( $className, $functionName ), [ $param0, [ $param1, [ ... ] ] ] )
--
http://www.php.net/manual/en/function.call-user-func.php
http://master.php.net/manage/user-notes.php?action=edit+15809
http://master.php.net/manage/user-notes.php?action=delete+15809
http://master.php.net/manage/user-notes.php?action=reject+15809