svn: /phpdoc/en/trunk/reference/array/functions/ natsort.xml
| From: | Daniel Egeberg | Date: | Sat, 15 May 2010 21:49:14 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/array/functions/ natsort.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6659@lists.php.net to get a copy of this message | ||
degeberg Sat, 15 May 2010 21:49:14 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=299407
Log:
Fixed PHP bug #51828 (example of natsort should compare with asort function)
Bug: http://bugs.php.net/51828 (Open) example of natsort
should compare with asort function
Changed paths:
U phpdoc/en/trunk/reference/array/functions/natsort.xml
Modified: phpdoc/en/trunk/reference/array/functions/natsort.xml
===================================================================
--- phpdoc/en/trunk/reference/array/functions/natsort.xml 2010-05-15 21:30:50 UTC (rev 299406)
+++ phpdoc/en/trunk/reference/array/functions/natsort.xml 2010-05-15 21:49:14 UTC (rev 299407)
@@ -50,7 +50,7 @@
<?php
$array1 = $array2 = array("img12.png", "img10.png", "img2.png",
"img1.png");
-sort($array1);
+asort($array1);
echo "Standard sorting\n";
print_r($array1);
@@ -66,10 +66,10 @@
Standard sorting
Array
(
- [0] => img1.png
+ [3] => img1.png
[1] => img10.png
- [2] => img12.png
- [3] => img2.png
+ [0] => img12.png
+ [2] => img2.png
)
Natural order sorting