Re: new function?

From: Date: Tue, 13 Jan 2004 21:17:43 +0000
Subject: Re: new function?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-7064@lists.php.net to get a copy of this message
On Tue, 13 Jan 2004, Andrey Hristov wrote: > I know HEAD is freezed, but anyway to ask whether a new function > in_array_all() can be added. It works like in_array() but checks > whether all needles are in the stack array. Do we really need this either way? function in_array_all($needles, $haystack, $strict = false) { foreach($needles as $needle) { if (!in_array($needle, $haystack, $strict)) { return false; } } return true; } -adam -- adam@trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today!

« previous php.internals (#7064) next »