Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7065 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30625 invoked by uid 1010); 13 Jan 2004 21:22:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 30601 invoked from network); 13 Jan 2004 21:22:43 -0000 Received: from unknown (HELO matrix.gna.ch) (195.226.6.8) by pb1.pair.com with SMTP; 13 Jan 2004 21:22:43 -0000 Received: from localhost (localhost [127.0.0.1]) by matrix.gna.ch (Postfix) with ESMTP id 08C9D374; Tue, 13 Jan 2004 22:22:43 +0100 (CET) Received: by matrix.gna.ch (Postfix, from userid 65534) id B01E7376; Tue, 13 Jan 2004 22:22:41 +0100 (CET) Received: from cschneid.com (unknown [195.226.4.61]) by matrix.gna.ch (Postfix) with ESMTP id 96FBD375; Tue, 13 Jan 2004 22:22:32 +0100 (CET) Message-ID: <40046198.6010800@cschneid.com> Date: Tue, 13 Jan 2004 22:22:32 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031009 X-Accept-Language: de-ch, de, 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> X-Enigmail-Version: 0.76.7.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on matrix.gna.ch X-Spam-Level: X-Spam-Status: No, hits=-4.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.61 X-Virus-Scanned: by AMaViS Ultramail snapshot-20020531 Subject: Re: new function? From: cschneid@cschneid.com (Christian Schneider) 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