diff --git a/functions/array.xml b/functions/array.xml index 0265552e77..f5c011caa5 100644 --- a/functions/array.xml +++ b/functions/array.xml @@ -1753,6 +1753,7 @@ blue, large, sphere, medium bool in_array mixed needle array haystack + bool strict @@ -1760,6 +1761,12 @@ blue, large, sphere, medium needle and returns true if it is found in the array, false otherwise. + strict is set to + TRUE then the in_array + will also check the types of the needle + in the haystack. + <function>In_array</function> example @@ -1771,6 +1778,25 @@ if (in_array ("Irix", $os)){ + + + <function>In_array</function> with strict example + + + +// This will output: + +1.13 found with strict check + + +