Doc #51828 [Opn->Csd]: example of natsort should compare with asort function
| From: | degeberg@php.net | Date: | Sat, 15 May 2010 21:49:24 +0000 |
| Subject: | Doc #51828 [Opn->Csd]: example of natsort should compare with asort function | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-4382@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51828&edit=1
ID: 51828
Updated by: degeberg@php.net
Reported by: php dot net at koks dot li
Summary: example of natsort should compare with asort function
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: degeberg
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2010-05-15 23:49:16] degeberg@php.net
Automatic comment from SVN on behalf of degeberg
Revision: http://svn.php.net/viewvc/?view=revision&revision=299407
Log: Fixed PHP bug #51828 (example of natsort should compare with asort
function)
------------------------------------------------------------------------
[2010-05-14 18:47:31] php dot net at koks dot li
Description:
------------
the example for natsort() compares it to sort(). in contrast to natsort,
the sort function does NOT maintain key associations. the example should
use asort() instead, so that both examples will maintain the key
associations.
greets
KoS
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51828&edit=1