mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
00416213c8
commit
99a0f11459
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue