note 51860 deleted from function.in-array by nlopess

From: Date: Wed, 13 Apr 2005 18:25:44 +0000
Subject: note 51860 deleted from function.in-array by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-87967@lists.php.net to get a copy of this message
Note Submitter: zionglau at yahoo dot com Reason: useless ---- <?php $arr = array("1a1", "1b1", "1c1", "1d1"); $str = "1e1"; if (in_array($str, $arr)) echo "Tell me why?! '1e1' == '1d1'?! <br>"; if (!in_array($str, $arr, true)) echo "IT's work with strict!<br>"; ?>

« previous php.notes (#87967) next »