note 10238 added to in_array

From: Date: Wed, 20 Dec 2000 15:13:32 +0000
Subject: note 10238 added to in_array
Groups: php.notes 
Request: Send a blank email to php-notes+get-8953@lists.php.net to get a copy of this message
The function returning the "position" of the needle in the haystack exists : $key = array_keys($value) ; You get the key back, and if it's not an associative array you so have its position. http://www.php.net/manual/function.in-array.php

« previous php.notes (#8953) next »