Fixed PHP bug #51828 (example of natsort should compare with asort function)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@299407 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel Egeberg 2010-05-15 21:49:14 +00:00
parent 00416213c8
commit 99a0f11459

View file

@ -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 @@ print_r($array2);
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