fixing usort example (oops)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@50494 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel Beckham 2001-07-02 16:52:10 +00:00
parent 4f80887f58
commit b7be24739c

View file

@ -3062,7 +3062,7 @@ while (list ($key, $value) = each ($a)) {
<programlisting role="php">
function cmp ($a, $b) {
if ($a == $b) return 0;
return ($a > $b) ? -1 : 1;
return ($a < $b) ? -1 : 1;
}
$a = array (3, 2, 5, 6, 1);