In response to phpguy at lifetoward dot com.
I tested on PHP 5.5.9 and found that his claims are outdated.
Code below can be used to check it.
PS: It's probably best to downvote that comment, so people who are new to PHP won't be misinformed.
<?php
error_reporting(E_ALL);
$test = [2, 1, 5, 6, 3, 0];
echo var_dump($test).'<hr>';
$reverse = 0;
usort($test, ($reverse?'sortRev':'sortForw') );
echo var_dump($test).'<hr>';
function sortForw($a, $b) {
return $a - $b;
}
function sortRev($a, $b) {
return $b - $a;
}