Re: new function?

From: Date: Tue, 13 Jan 2004 21:22:32 +0000
Subject: Re: new function?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-7065@lists.php.net to get a copy of this message
Andrey Hristov wrote:
It works like in_array() but checks whether all needles are in the stack array.
Looking at the prototype: bool in_array_all(mixed needle1[, mixed needle2], mixed haystack [, bool strict]) I'd say if (and I'm personally -1) this is added it should be bool in_array_all(array needles, array haystack [, bool strict]) IMHO which would make parameter handling much simpler. But then again you could also do array_intersect($needles, $haystack) to get the same result in a lot of cases. - Chris

« previous php.internals (#7065) next »