note 117200 added to function.array-search

From: Date: Thu, 30 Apr 2015 23:19:51 +0000
Subject: note 117200 added to function.array-search
Groups: php.notes 
Request: Send a blank email to php-notes+get-202405@lists.php.net to get a copy of this message
Like many others, === failed for a 0-indexed occurrence. My solution was to test if an integer returned: if ( is_int ( array_search($value, $array) ) ) return true; ---- Server IP: 72.52.91.14 Probable Submitter: 67.180.45.109 ---- Manual Page -- http://php.net/manual/en/function.array-search.php Edit -- https://master.php.net/note/edit/117200 Del: integrated -- https://master.php.net/note/delete/117200/integrated Del: useless -- https://master.php.net/note/delete/117200/useless Del: bad code -- https://master.php.net/note/delete/117200/bad+code Del: spam -- https://master.php.net/note/delete/117200/spam Del: non-english -- https://master.php.net/note/delete/117200/non-english Del: in docs -- https://master.php.net/note/delete/117200/in+docs Del: other reasons-- https://master.php.net/note/delete/117200 Reject -- https://master.php.net/note/reject/117200 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#202405) next »