note 120488 rejected from function.in-array by cmb

From: Date: Sun, 15 Sep 2019 13:04:03 +0000
Subject: note 120488 rejected from function.in-array by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212191@lists.php.net to get a copy of this message
Note Submitter: php at koman dot com dot au ---- The parameter section of this page states :- strict If the third parameter strict is set to TRUE then the in_array() function will also check the types of the needle in the haystack. I think a better explanation would be :- strict If the third parameter, strict, is set to TRUE, then the in_array() function will do a strict comparison of values and types between the needle and haystack. The default setting for the third parameter, strict, is FALSE, here the in_array() function will do type juggling in an attempt to match a value when a type is not the same between the needle and haystack.

« previous php.notes (#212191) next »