From 911aec1fa7496cc2eac160e6d2091ef864baede3 Mon Sep 17 00:00:00 2001 From: Florian Anderiasch Date: Mon, 4 May 2009 22:20:08 +0000 Subject: [PATCH] fixed bug #48138 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@279922 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/funchand/functions/call-user-func.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/reference/funchand/functions/call-user-func.xml b/reference/funchand/functions/call-user-func.xml index 8fc710cc7b..46213dc43a 100644 --- a/reference/funchand/functions/call-user-func.xml +++ b/reference/funchand/functions/call-user-func.xml @@ -1,5 +1,5 @@ - + call_user_func @@ -31,6 +31,8 @@ The function to be called. Class methods may also be invoked statically using this function by passing array($classname, $methodname) to this parameter. + Additionally class methods of an object instance may be called by passing + array($objectinstance, $methodname) to this parameter. @@ -137,6 +139,10 @@ $classname = "myclass"; call_user_func(array($classname, 'say_hello')); call_user_func($classname .'::say_hello'); // As of 5.2.3 +$myobject = new myclass(); + +call_user_func(array($myobject, 'say_hello')); + ?> ]]>