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) ]]>