Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php array sort

// Fonction de comparaison
function cmp($a, $b) {
    if ($a == $b) {
        return 0;
    }
    return ($a < $b) ? -1 : 1;
}
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #array #sort
ADD COMMENT
Topic
Name
5+6 =