- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.20
- Parse error: syntax error, unexpected ',' in /in/De3Is on line 8
Process exited with code 255.
<?php
function cmp($a, $b)
{
return ((int) $b - (int) $a);
}
$array = (500, 1000, 200, 30, 100000);
usort($array, "cmp");
var_dump($array);