#41178 [Opn->WFx]: Document order-preserving property of array_intersect, array_diff
| From: | vrana@php.net | Date: | Fri, 17 Aug 2007 09:29:08 +0000 |
| Subject: | #41178 [Opn->WFx]: Document order-preserving property of array_intersect, array_diff | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969377553@lists.php.net to get a copy of this message | ||
ID: 41178
Updated by: vrana@php.net
Reported By: olafb at google dot com
-Status: Open
+Status: Wont fix
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
No assumption is taken about this.
Previous Comments:
------------------------------------------------------------------------
[2007-04-24 13:12:15] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41178&edit=1