note 82398 deleted from function.in-array by danbrown

From: Date: Mon, 08 Jun 2009 21:41:16 +0000
Subject: note 82398 deleted from function.in-array by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-156501@lists.php.net to get a copy of this message
Note Submitter: hadg ---- 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.

« previous php.notes (#156501) next »