vrana           Mon Apr  3 15:04:09 2006 UTC

  Modified files:              
    /phpdoc/en/reference/array/functions        uksort.xml 
  Log:
  Typo in example (bug #36958)
  
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/array/functions/uksort.xml?r1=1.16&r2=1.17&diff_format=u
Index: phpdoc/en/reference/array/functions/uksort.xml
diff -u phpdoc/en/reference/array/functions/uksort.xml:1.16 
phpdoc/en/reference/array/functions/uksort.xml:1.17
--- phpdoc/en/reference/array/functions/uksort.xml:1.16 Fri Jul  1 13:07:47 2005
+++ phpdoc/en/reference/array/functions/uksort.xml      Mon Apr  3 15:04:09 2006
@@ -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 @@
     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");

Reply via email to