note 31897 added to function.in-array

From: Date: Thu, 08 May 2003 09:20:45 +0000
Subject: note 31897 added to function.in-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-47678@lists.php.net to get a copy of this message
regarding the above note with integers and string in an array: this is no bug, as the string "2a7" will be converted to the int 2. use strict checking to prevent this. -- http://www.php.net/manual/en/function.in-array.php http://master.php.net/manage/user-notes.php?action=edit+31897 http://master.php.net/manage/user-notes.php?action=delete+31897 http://master.php.net/manage/user-notes.php?action=reject+31897

« previous php.notes (#47678) next »