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
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php