On 8/15/07, Hannes Magnusson <[EMAIL PROTECTED]> 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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to