- print_r: documentation ( source)
- asort: documentation ( source)
- natsort: documentation ( source)
<?php
$array1 = $array2 = array("index.html", "doc/index.html", "doc/test.html");
asort($array1);
echo "Standard sorting\n";
print_r($array1);
natsort($array2);
echo "\nNatural order sorting\n";
print_r($array2);