#12201 [Com]: Order in array function
| From: | sex-lesbian92 at hotmail dot com | Date: | Tue, 20 Jul 2004 15:10:47 +0000 |
| Subject: | #12201 [Com]: Order in array function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63122@lists.php.net to get a copy of this message | ||
ID: 12201
Comment by: sex-lesbian92 at hotmail dot com
Reported By: xinkun at soi dot city dot ac dot uk
Status: Bogus
Bug Type: Arrays related
Operating System: UNIX
PHP Version: 4.0.6
New Comment:
<a href=http://your-japan-handcuff.da.ru>lesbian
sex</a>
Previous Comments:
------------------------------------------------------------------------
[2001-10-22 12:48:34] derick@php.net
User added example:
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
-----------------
So it keeps the original order of the first array mentioned.
Bug a bug, as this is exaclty what should happen.
Derick
------------------------------------------------------------------------
[2001-10-21 01:45:28] sniper@php.net
Please add a short example script which demonstrates the problem.
------------------------------------------------------------------------
[2001-09-14 19:33:58] jeroen@php.net
Sample script?
------------------------------------------------------------------------
[2001-07-17 07:01:39] xinkun at soi dot city dot ac dot uk
array_diff and array_intersect (maybe also other array functions)
change the original order from compared arrays,
could you keep the initial order?
Thanks
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=12201&edit=1