From cc50ece11cd2b95457852a1da3a456474012b374 Mon Sep 17 00:00:00 2001 From: David Croft Date: Tue, 6 May 2003 20:30:27 +0000 Subject: [PATCH] this example was confusing if you didn't read through to the end git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@126067 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/array/functions/usort.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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.