note 81949 deleted from function.in-array by danbrown

From: Date: Mon, 08 Jun 2009 21:41:32 +0000
Subject: note 81949 deleted from function.in-array by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-156505@lists.php.net to get a copy of this message
Note Submitter: mikegioia ---- @ vidmantas and ucffool: There's a large difference between your methods of speed comparison. vidmantas is running in_array() and isset() in a for loop (once for each element of that large array) while ucffool just runs the functions. I ran both speed tests and in_array() outperformed isset() every time.

« previous php.notes (#156505) next »