note 82398 added to function.in-array

From: Date: Wed, 09 Apr 2008 12:18:57 +0000
Subject: note 82398 added to function.in-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-138058@lists.php.net to get a copy of this message
ucffool, in your code you calculate the time for array_flip with isset. This is why isset time is bigger than in_array. simply replace $time=microtime(1); $array2 = array_flip($array); with $array2 = array_flip($array); $time=microtime(1); to get isset's real time. ---- Server IP: 82.80.248.162 Probable Submitter: 213.8.122.43 ---- Manual Page -- http://www.php.net/manual/en/function.in-array.php Edit -- https://master.php.net/note/edit/82398 Del: integrated -- https://master.php.net/note/delete/82398/integrated Del: useless -- https://master.php.net/note/delete/82398/useless Del: bad code -- https://master.php.net/note/delete/82398/bad+code Del: spam -- https://master.php.net/note/delete/82398/spam Del: non-english -- https://master.php.net/note/delete/82398/non-english Del: in docs -- https://master.php.net/note/delete/82398/in+docs Del: other reasons-- https://master.php.net/note/delete/82398 Reject -- https://master.php.net/note/reject/82398 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#138058) next »