hiphop-php /hphp/test/zend/good/ext/standard/tests/array/natsort_basic.php

Language PHP Lines 14
MD5 Hash 42be172e00cd71e3b9321128a502558d Estimated Cost $148 (why?)
Repository git://github.com/facebook/hiphop-php.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<?php
/*
* proto bool natsort ( array &$array )
* Function is implemented in ext/standard/array.c
*/
$array1 = $array2 = array("img12.png", "img10.png", "img2.png", "img1.png");
sort($array1);
echo "Standard sorting\n";
print_r($array1);
natsort($array2);
echo "\nNatural order sorting\n";
print_r($array2);
?>
Back to Top