From 313b98ba940827b8fa434129ce90686c8e3fc3e4 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 26 Dec 2003 09:56:59 +0000 Subject: [PATCH] sort functions return true or false git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147340 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/array/functions/arsort.xml | 7 +++++-- reference/array/functions/asort.xml | 7 +++++-- reference/array/functions/krsort.xml | 7 +++++-- reference/array/functions/ksort.xml | 7 +++++-- reference/array/functions/rsort.xml | 7 +++++-- reference/array/functions/sort.xml | 7 +++++-- reference/array/functions/uasort.xml | 7 +++++-- reference/array/functions/uksort.xml | 7 +++++-- reference/array/functions/usort.xml | 7 +++++-- 9 files changed, 45 insertions(+), 18 deletions(-) diff --git a/reference/array/functions/arsort.xml b/reference/array/functions/arsort.xml index 8e47239387..85a02a11b7 100644 --- a/reference/array/functions/arsort.xml +++ b/reference/array/functions/arsort.xml @@ -1,5 +1,5 @@ - + @@ -11,7 +11,7 @@ Description - voidarsort + boolarsort arrayarray intsort_flags @@ -21,6 +21,9 @@ with. This is used mainly when sorting associative arrays where the actual element order is significant. + + &return.success; + <function>arsort</function> example diff --git a/reference/array/functions/asort.xml b/reference/array/functions/asort.xml index f7f844a890..450e08f891 100644 --- a/reference/array/functions/asort.xml +++ b/reference/array/functions/asort.xml @@ -1,5 +1,5 @@ - + @@ -9,7 +9,7 @@ Description - voidasort + boolasort arrayarray intsort_flags @@ -19,6 +19,9 @@ with. This is used mainly when sorting associative arrays where the actual element order is significant. + + &return.success; + <function>asort</function> example diff --git a/reference/array/functions/krsort.xml b/reference/array/functions/krsort.xml index 2bec20533e..19efd97927 100644 --- a/reference/array/functions/krsort.xml +++ b/reference/array/functions/krsort.xml @@ -1,5 +1,5 @@ - + @@ -9,7 +9,7 @@ Description - intkrsort + boolkrsort arrayarray intsort_flags @@ -17,6 +17,9 @@ Sorts an array by key in reverse order, maintaining key to data correlations. This is useful mainly for associative arrays. + + &return.success; + <function>krsort</function> example diff --git a/reference/array/functions/ksort.xml b/reference/array/functions/ksort.xml index a5eba2b242..11c2653e2e 100644 --- a/reference/array/functions/ksort.xml +++ b/reference/array/functions/ksort.xml @@ -1,5 +1,5 @@ - + @@ -9,7 +9,7 @@ Description - intksort + boolksort arrayarray intsort_flags @@ -17,6 +17,9 @@ Sorts an array by key, maintaining key to data correlations. This is useful mainly for associative arrays. + + &return.success; + <function>ksort</function> example diff --git a/reference/array/functions/rsort.xml b/reference/array/functions/rsort.xml index 84cc7872f5..7668b785e1 100644 --- a/reference/array/functions/rsort.xml +++ b/reference/array/functions/rsort.xml @@ -1,5 +1,5 @@ - + @@ -9,13 +9,16 @@ Description - voidrsort + boolrsort arrayarray intsort_flags This function sorts an array in reverse order (highest to lowest). + + &return.success; + <function>rsort</function> example diff --git a/reference/array/functions/sort.xml b/reference/array/functions/sort.xml index 053391d9cd..34b57604be 100644 --- a/reference/array/functions/sort.xml +++ b/reference/array/functions/sort.xml @@ -1,5 +1,5 @@ - + @@ -9,7 +9,7 @@ Description - voidsort + boolsort arrayarray intsort_flags @@ -17,6 +17,9 @@ This function sorts an array. Elements will be arranged from lowest to highest when this function has completed. + + &return.success; + <function>sort</function> example diff --git a/reference/array/functions/uasort.xml b/reference/array/functions/uasort.xml index ddea369680..e12d375952 100644 --- a/reference/array/functions/uasort.xml +++ b/reference/array/functions/uasort.xml @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ Description - voiduasort + booluasort arrayarray callbackcmp_function @@ -23,6 +23,9 @@ the actual element order is significant. The comparison function is user-defined. + + &return.success; + Please see usort and diff --git a/reference/array/functions/uksort.xml b/reference/array/functions/uksort.xml index a7f36b09ef..d215d13e17 100644 --- a/reference/array/functions/uksort.xml +++ b/reference/array/functions/uksort.xml @@ -1,5 +1,5 @@ - + @@ -11,7 +11,7 @@ Description - voiduksort + booluksort arrayarray callbackcmp_function @@ -29,6 +29,9 @@ be respectively less than, equal to, or greater than the second. + + &return.success; + <function>uksort</function> example diff --git a/reference/array/functions/usort.xml b/reference/array/functions/usort.xml index e028046989..4ffc3d987a 100644 --- a/reference/array/functions/usort.xml +++ b/reference/array/functions/usort.xml @@ -1,5 +1,5 @@ - + @@ -11,7 +11,7 @@ Description - voidusort + boolusort arrayarray callbackcmp_function @@ -37,6 +37,9 @@ + + &return.success; + <function>usort</function> example