diff --git a/functions/array.xml b/functions/array.xml index 66ad248d3b..c3e7d110d5 100644 --- a/functions/array.xml +++ b/functions/array.xml @@ -1,5 +1,5 @@ - + Array Functions Arrays @@ -2954,6 +2954,12 @@ if (in_array('o', $a)) needle and returns the key if it is found in the array, &false; otherwise. + + + Prior to PHP 4.2.0, array_search returns + NULL on failure instead of &false;. + + If the optional third parameter strict is set to &true; then the array_search @@ -2962,7 +2968,7 @@ if (in_array('o', $a)) &return.falseproblem; - See also in_array. + See also array_keys and in_array.