svn: /phpdoc/en/trunk/ language/types/pseudo-types.xml reference/pcre/functions/preg-replace-callback.xml

From: Date: Thu, 30 Jul 2009 09:20:16 +0000
Subject: svn: /phpdoc/en/trunk/ language/types/pseudo-types.xml reference/pcre/functions/preg-replace-callback.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4556@lists.php.net to get a copy of this message
vrana Thu, 30 Jul 2009 09:20:16 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=286543 Log: Link anonymous functions/preg-replace-callback.xml Changed paths: U phpdoc/en/trunk/language/types/pseudo-types.xml U phpdoc/en/trunk/reference/pcre/functions/preg-replace-callback.xml Modified: phpdoc/en/trunk/language/types/pseudo-types.xml =================================================================== --- phpdoc/en/trunk/language/types/pseudo-types.xml 2009-07-30 08:08:37 UTC (rev 286542) +++ phpdoc/en/trunk/language/types/pseudo-types.xml 2009-07-30 09:20:16 UTC (rev 286543) @@ -64,7 +64,8 @@ <para> Apart from common user-defined function, <function>create_function</function> can also be used to create an anonymous callback function. As of PHP 5.3.0 - its possible to also pass a closure to a callback parameter. + it is possible to also pass a + <link linkend="functions.anonymous">closure</link> to a callback parameter. </para> <para> Modified: phpdoc/en/trunk/reference/pcre/functions/preg-replace-callback.xml =================================================================== --- phpdoc/en/trunk/reference/pcre/functions/preg-replace-callback.xml 2009-07-30 08:08:37 UTC (rev 286542) +++ phpdoc/en/trunk/reference/pcre/functions/preg-replace-callback.xml 2009-07-30 09:20:16 UTC (rev 286543) @@ -48,7 +48,9 @@ <para> You'll often need the <parameter>callback</parameter> function for a <function>preg_replace_callback</function> in just one place. - In this case you can use <function>create_function</function> to + In this case you can use an + <link linkend="functions.anonymous">anonymous function</link> (since + PHP 5.3.0) or <function>create_function</function> to declare an anonymous function as callback within the call to <function>preg_replace_callback</function>. By doing it this way you have all information for the call in one place and do not

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