cvs: phpdoc /en/reference/funchand/functions call-user-func.xml
| From: | Felipe Pena | Date: | Fri, 25 Jan 2008 00:02:32 +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-1078@lists.php.net to get a copy of this message | ||
felipe Fri Jan 25 00:02:32 2008 UTC
Modified files:
/phpdoc/en/reference/funchand/functions call-user-func.xml
Log:
Fix example (add "static"); Add new example ("classname::method" as valid
callback)
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/funchand/functions/call-user-func.xml?r1=1.18&r2=1.19&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.18
phpdoc/en/reference/funchand/functions/call-user-func.xml:1.19
--- phpdoc/en/reference/funchand/functions/call-user-func.xml:1.18 Wed Jan 23 19:06:10 2008
+++ phpdoc/en/reference/funchand/functions/call-user-func.xml Fri Jan 25 00:02:31 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.18 $ -->
+<!-- $Revision: 1.19 $ -->
<refentry xml:id="function.call-user-func" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>call_user_func</refname>
@@ -124,8 +124,9 @@
<programlisting role="php">
<![CDATA[
<?php
+
class myclass {
- function say_hello()
+ static function say_hello()
{
echo "Hello!\n";
}
@@ -134,6 +135,8 @@
$classname = "myclass";
call_user_func(array($classname, 'say_hello'));
+call_user_func($classname .'::say_hello'); // As of 5.2.3
+
?>
]]>
</programlisting>