cvs: phpdoc /en/reference/funchand/functions call-user-func.xml

From: Date: Mon, 04 May 2009 22:20:08 +0000
Subject: cvs: phpdoc /en/reference/funchand/functions call-user-func.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-3960@lists.php.net to get a copy of this message
fa Mon May 4 22:20:08 2009 UTC Modified files: /phpdoc/en/reference/funchand/functions call-user-func.xml Log: fixed bug #48138 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/funchand/functions/call-user-func.xml?r1=1.21&r2=1.22&diff_format=u Index: phpdoc/en/reference/funchand/functions/call-user-func.xml diff -u phpdoc/en/reference/funchand/functions/call-user-func.xml:1.21 phpdoc/en/reference/funchand/functions/call-user-func.xml:1.22 --- phpdoc/en/reference/funchand/functions/call-user-func.xml:1.21 Thu Apr 2 01:51:02 2009 +++ phpdoc/en/reference/funchand/functions/call-user-func.xml Mon May 4 22:20:08 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.21 $ --> +<!-- $Revision: 1.22 $ --> <refentry xml:id="function.call-user-func" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>call_user_func</refname> @@ -31,6 +31,8 @@ The function to be called. Class methods may also be invoked statically using this function by passing <literal>array($classname, $methodname)</literal> to this parameter. + Additionally class methods of an object instance may be called by passing + <literal>array($objectinstance, $methodname)</literal> to this parameter. </para> </listitem> </varlistentry> @@ -137,6 +139,10 @@ 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')); + ?> ]]> </programlisting>

« previous php.doc.cvs (#3960) next »