note 30578 deleted from function.in-array by felipe

From: Date: Sun, 09 Dec 2007 15:33:55 +0000
Subject: note 30578 deleted from function.in-array by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133060@lists.php.net to get a copy of this message
Note Submitter: raphinou at yahoo dot Com ---- If the haystack contains the boolean true, in_array returns true!! Check this (PHP 4.2.3-8 debian package) : <?php $r=array("fzsgsdgsd","reazrazr","rezarzearzae",true); $ret=in_array("tsuser_id",$r); print "<H1>__ $ret __</H1>"; } ?>

« previous php.notes (#133060) next »