note 34084 deleted from function.call-user-func by aidan
| From: | aidan@php.net | Date: | Tue, 31 Aug 2004 06:55:22 +0000 |
| Subject: | note 34084 deleted from function.call-user-func by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75715@lists.php.net to get a copy of this message | ||
Note Submitter: greg at chiaraquartet dot net
----
call_user_func can also be used to call a static class method.
<?php
class my {
function method($additional)
{
echo "called method: $additional\n";
}
}
call_user_func(array("my", "method"), "hello");
?>
outputs "called method: hello"