Typo in example (bug #36958)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@210609 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2006-04-03 15:04:09 +00:00
parent 51080636d1
commit 49ad52325c

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.16 $ -->
<!-- $Revision: 1.17 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
<refentry id="function.uksort">
<refnamediv>
@ -43,7 +43,7 @@ function cmp($a, $b)
if ($a == $b) {
return 0;
}
return ($a > $b) ? -1 : 1;
return ($a > $b) ? 1 : -1;
}
$a = array(4 => "four", 3 => "three", 20 => "twenty", 10 => "ten");