[PATCH] New parameter for in_array() & array_search()

From: Date: Wed, 15 Aug 2007 14:59:52 +0000
Subject: [PATCH] New parameter for in_array() & array_search()
Groups: php.internals 
Request: Send a blank email to internals+get-31583@lists.php.net to get a copy of this message
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). This will make it possible to search for a value in an array and then run prev()/next() on the array to get the next/previous sibling. I'd like to commit this after 5.2.4 has been released if there are no objections? -Hannes * In case it doesn't come through: http://home.nith.no/~maghan/keeppos/

Attachment: [text/x-diff] keeppos.patch
« previous php.internals (#31583) next »