Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7067 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63484 invoked by uid 1010); 13 Jan 2004 21:42:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 63460 invoked from network); 13 Jan 2004 21:42:36 -0000 Received: from unknown (HELO mrout2.yahoo.com) (216.145.54.172) by pb1.pair.com with SMTP; 13 Jan 2004 21:42:36 -0000 Received: from bourbon.corp.yahoo.com (bourbon.corp.yahoo.com [216.145.53.135]) by mrout2.yahoo.com (8.12.10/8.12.10/y.out) with ESMTP id i0DLf726010278; Tue, 13 Jan 2004 13:41:07 -0800 (PST) Received: (from andrei@localhost) by bourbon.corp.yahoo.com (8.12.9/8.11.1) id i0DLf79a070715; Tue, 13 Jan 2004 13:41:07 -0800 (PST) (envelope-from andrei) Date: Tue, 13 Jan 2004 13:41:07 -0800 To: Andrey Hristov Cc: internals@lists.php.net Message-ID: <20040113214106.GA70688@gravitonic.com> References: <40045BB4.4050000@hristov.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40045BB4.4050000@hristov.com> User-Agent: Mutt/1.4.1i Subject: Re: [PHP-DEV] new function? From: andrei@gravitonic.com (Andrei Zmievski) On Tue, 13 Jan 2004, 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 Maybe just use array_intersect() instead? - Andrei