Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7066 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31695 invoked by uid 1010); 13 Jan 2004 21:22:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 31618 invoked from network); 13 Jan 2004 21:22:51 -0000 Received: from unknown (HELO cedar.phpwebhosting.com) (66.132.144.42) by pb1.pair.com with SMTP; 13 Jan 2004 21:22:51 -0000 Received: (qmail 29595 invoked from network); 13 Jan 2004 21:22:49 -0000 Received: from unknown (HELO highsidecafe.com) (65.40.44.13) by cedar2.phpwebhosting.com with SMTP; 13 Jan 2004 21:22:49 -0000 Message-ID: <4004619D.6090303@highsidecafe.com> Date: Tue, 13 Jan 2004 16:22:37 -0500 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrey Hristov CC: internals@lists.php.net References: <40045BB4.4050000@hristov.com> In-Reply-To: <40045BB4.4050000@hristov.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] new function? From: bdkr@highsidecafe.com (BDKR) Andrey Hristov wrote: > Hi internals, > 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. > > Diff : > http://www.hristov.com/andrey/projects/php_stuff/in_array_all.diff.txt > > > Best wishes, > Andrey > Does this mean that one of the arguments could/should be an array? if(in_array($needles_array, $haystack_array)) { /*err.... */ } Cheers, BDKR