diff --git a/reference/array/functions/usort.xml b/reference/array/functions/usort.xml index 9cf6f7a584..5959682110 100644 --- a/reference/array/functions/usort.xml +++ b/reference/array/functions/usort.xml @@ -1,5 +1,5 @@ - + @@ -42,7 +42,7 @@ $b) ? -1 : 1; + return ($a < $b) ? -1 : 1; } $a = array (3, 2, 5, 6, 1); @@ -62,17 +62,17 @@ while (list ($key, $value) = each ($a)) { - Obviously in this trivial case the rsort + Obviously in this trivial case the sort function would be more appropriate.