Doc #67444 [NEW]: Incorrect Documentation.
| From: | timothymarois at gmail dot com | Date: | Sat, 14 Jun 2014 20:49:28 +0000 |
| Subject: | Doc #67444 [NEW]: Incorrect Documentation. | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-11280@lists.php.net to get a copy of this message | ||
From: timothymarois at gmail dot com
Operating system:
PHP version: 5.5.13
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Incorrect Documentation.
Description:
------------
---
From manual page: http://www.php.net/function.array-multisort
---
on "Example #2 Sorting multi-dimensional array"
is the same exact thing as the one above "Example #1 Sorting multiple
arrays"
- doesn't seem right, just repetitive documentation.
"array_multisort" does "not" actually sort multi-dimensional arrays
based on this documentation.
example:
$single1 = array(7,145,6,14,54);
$single2 = array(7,145,6,14,54);
$multi =
array('one'=>array(7,145,6,14,54),'two'=>array(5,48,41,1,9,1));
// sorting 2 single arrays...
array_multisort($single1,$single2);
// sorting 2 single arrays (from a multi-dimensional array)...
// is the exact same thing as above
array_multisort($multi['one'],$multi['two']);
--
Edit bug report at https://bugs.php.net/bug.php?id=67444&edit=1
--