Re: Bug #12201 Updated: Order in array function

From: Date: Mon, 22 Oct 2001 13:34:50 +0000
Subject: Re: Bug #12201 Updated: Order in array function
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-68705@lists.php.net to get a copy of this message
> ID: 12201 > Updated by: sniper > Reported By: xinkun@soi.city.ac.uk > Old Status: Open > Status: Feedback > Bug Type: Arrays related > Operating System: UNIX > PHP Version: 4.0.6 > New Comment: > > Please add a short example script which demonstrates the problem. > > > Previous Comments: > ------------------------------------------------------------------------ > > [2001-09-14 19:33:58] jeroen@php.net > > Sample script? > > ------------------------------------------------------------------------ > > [2001-07-17 07:01:39] xinkun@soi.city.ac.uk > > array_diff and array_intersect (maybe also other array functions) change the original order > from compared arrays, > could you keep the initial order? array1={a, b, c ,d}, array2={c, f, b} if do array_intersect(array1, array2), return b,c if do array_intersect(array2, array1), return c,b > > Thanks > > ------------------------------------------------------------------------ > > > > ATTENTION! Do NOT reply to this email! > To reply, use the web interface found at > http://bugs.php.net/?id=12201&edit=2 >

« previous php.dev (#68705) next »