From 435459d19df9943ed90a25aef4fdbcdf927bf7e7 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Sun, 7 Jan 2001 23:32:24 +0000 Subject: [PATCH] Clarification of the strict parameter of in_array git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@38843 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/array.xml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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 + + +