From 5367ec851c8abbf3b68d10f27330884387f3008b Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 30 Jul 2009 09:20:16 +0000 Subject: [PATCH] Link anonymous functions/preg-replace-callback.xml git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@286543 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/types/pseudo-types.xml | 3 ++- reference/pcre/functions/preg-replace-callback.xml | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/language/types/pseudo-types.xml b/language/types/pseudo-types.xml index 1314412dc8..77d81e0b89 100644 --- a/language/types/pseudo-types.xml +++ b/language/types/pseudo-types.xml @@ -64,7 +64,8 @@ Apart from common user-defined function, create_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 + closure to a callback parameter. diff --git a/reference/pcre/functions/preg-replace-callback.xml b/reference/pcre/functions/preg-replace-callback.xml index 79b638ad1f..64ff26d603 100644 --- a/reference/pcre/functions/preg-replace-callback.xml +++ b/reference/pcre/functions/preg-replace-callback.xml @@ -48,7 +48,9 @@ You'll often need the callback function for a preg_replace_callback in just one place. - In this case you can use create_function to + In this case you can use an + anonymous function (since + PHP 5.3.0) or create_function to declare an anonymous function as callback within the call to preg_replace_callback. By doing it this way you have all information for the call in one place and do not