sort


For arrays where the keys are numbers. reorder the array


examples/intro/sort.php
<?php

$a = array(23, 3, 2, 14);
foreach ($a as $k => $val) {
    print $val;
    print "\n";
}

print "--------\n";

sort($a);
foreach ($a as $k => $val) {
    print $val;
    print "\n";
}