On 8/15/07, Hannes Magnusson <hannes.magnusson@gmail.com> wrote:
> Hi all
>
> Attached* is a patch introducing a new parameter to in_array() and
> array_search() which will set the internal pointer to the first
> location of $needle in the $haystack (granted that $needle exists
> within the $haystack).
Or should we maybe create two new functions?
bool array_seek_value(&$array, mixed $value [, bool $strict=false]);
bool array_seek_key(&$array, integer/string $key);
-Hannes