php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #41178 Document order-preserving property of array_intersect, array_diff
Submitted: 2007-04-24 13:12 UTC Modified: 2007-08-17 09:29 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: olafb at google dot com Assigned:
Status: Wont fix Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: olafb at google dot com
New email:
PHP Version: OS:

 

 [2007-04-24 13:12 UTC] olafb at google dot com
Description:
------------
array_intersect and array_diff are implemented s.t. the order of the elements of the first array is preserved. If the implementors consider that a feature, it should be documented such that users can rely on it. Otherwise, it should be documented that no assumption about order-preservations should be made.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-17 09:29 UTC] vrana@php.net
No assumption is taken about this.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 23 04:01:26 2025 UTC