Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7071 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8540 invoked by uid 1010); 13 Jan 2004 22:05:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 8319 invoked from network); 13 Jan 2004 22:05:38 -0000 Received: from unknown (HELO stella.fastforwardnetwork.com) (209.51.153.50) by pb1.pair.com with SMTP; 13 Jan 2004 22:05:38 -0000 Received: (qmail 19208 invoked from network); 13 Jan 2004 23:10:04 -0000 Received: from p508aa864.dip.t-dialin.net (HELO hristov.com) (80.138.168.100) by d.goto.bg with SMTP; 13 Jan 2004 23:10:04 -0000 Message-ID: <40046B5B.3090309@hristov.com> Date: Tue, 13 Jan 2004 23:04:11 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20031230 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrei Zmievski CC: internals@lists.php.net References: <40045BB4.4050000@hristov.com> <40046198.6010800@cschneid.com> <400466AB.2020502@hristov.com> <4004676F.8010803@hristov.com> <20040113215833.GA70803@gravitonic.com> In-Reply-To: <20040113215833.GA70803@gravitonic.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: new function? From: php@hristov.com (Andrey Hristov) Hi Andrei :) Andrei Zmievski wrote: > On Tue, 13 Jan 2004, Andrey Hristov wrote: > >>Hi, >>just a correction, I meant array_diff when i wrote array_intersect. >>array_diff is more handy since just count($res)==0 is enough, $res is the >>returned array of array_diff(). > > > Did you actually try array_intersect()? > > - Andrei > Here it is : andrey@poohie:~/dev/5_0> cat s2.php andrey@poohie:~/dev/5_0> ./php s2.php bool(true) Time : 0.00010 array(3) { [0]=> int(100) [1]=> int(2) [2]=> int(3) } Time : 0.03078 About 300x . Andrey