mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
4f80887f58
commit
b7be24739c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue