note 10238 deleted from function.in-array by jimw
| From: | jimw@php.net | Date: | Fri, 07 Dec 2001 21:07:01 +0000 |
| Subject: | note 10238 deleted from function.in-array by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-21966@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.