ID: 12201
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Bogus
Bug Type: Arrays related
Operating System: UNIX
PHP Version: 4.0.6
New Comment:

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

Previous Comments:
------------------------------------------------------------------------

[2001-10-21 01:45:28] [EMAIL PROTECTED]

Please add a short example script which demonstrates the problem.


------------------------------------------------------------------------

[2001-09-14 19:33:58] [EMAIL PROTECTED]

Sample script?

------------------------------------------------------------------------

[2001-07-17 07:01:39] [EMAIL PROTECTED]

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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to