From 3b0392cafaa677f56f1889eacf9f99f99d82edf0 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Fri, 3 Jul 2009 18:21:37 +0000 Subject: [PATCH] Fixed #48119 (usort() docs don't mention it now takes a lambda) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@283436 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/types/pseudo-types.xml | 54 ++++++++++++++++++++----- reference/array/functions/array-map.xml | 37 +++-------------- 2 files changed, 50 insertions(+), 41 deletions(-) diff --git a/language/types/pseudo-types.xml b/language/types/pseudo-types.xml index 04adfccbe4..84ae10d852 100644 --- a/language/types/pseudo-types.xml +++ b/language/types/pseudo-types.xml @@ -1,5 +1,5 @@ - + Pseudo-types and variables used in this documentation @@ -63,14 +63,16 @@ Apart from common user-defined function, create_function - can also be used to create an anonymous callback 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. - - - Callback function examples - - + + + + Callback function examples + + ]]> - - + + + + + + + Callback example using a Closure + + + +]]> + + &example.outputs; + + + + + diff --git a/reference/array/functions/array-map.xml b/reference/array/functions/array-map.xml index e0319e308c..74214cb182 100644 --- a/reference/array/functions/array-map.xml +++ b/reference/array/functions/array-map.xml @@ -1,5 +1,5 @@ - + array_map @@ -66,31 +66,6 @@ - - &reftitle.changelog; - - - - - - &Version; - &Description; - - - - - 5.3.0 - - It is now possible to use a lambda function as the - callback. - - - - - - - - &reftitle.examples; @@ -127,17 +102,15 @@ Array - <function>array_map</function> using lambda function (as of PHP 5.3.0) + <function>array_map</function> using a lambda function (as of PHP 5.3.0) ]]>