From a92128a89f04cc27b94ca24115a5019be79e9806 Mon Sep 17 00:00:00 2001 From: Justin Martin Date: Sat, 4 Feb 2012 21:01:14 +0000 Subject: [PATCH] Refactored additional array functions using the callback function snippet and prototype. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323060 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/array/functions/array-diff-uassoc.xml | 6 ++---- reference/array/functions/array-diff-ukey.xml | 6 ++---- reference/array/functions/array-udiff.xml | 6 ++---- reference/array/functions/array-uintersect-assoc.xml | 7 ++----- reference/array/functions/array-uintersect-uassoc.xml | 7 ++----- 5 files changed, 10 insertions(+), 22 deletions(-) diff --git a/reference/array/functions/array-diff-uassoc.xml b/reference/array/functions/array-diff-uassoc.xml index 348733b00a..3b4e4c9f3f 100644 --- a/reference/array/functions/array-diff-uassoc.xml +++ b/reference/array/functions/array-diff-uassoc.xml @@ -62,11 +62,9 @@ key_compare_func - callback function to use. - The callback function must return an integer less than, equal - to, or greater than zero if the first argument is considered to - be respectively less than, equal to, or greater than the second. + &return.callbacksort; + &callback.cmp; diff --git a/reference/array/functions/array-diff-ukey.xml b/reference/array/functions/array-diff-ukey.xml index 31d639a215..d0960b3022 100644 --- a/reference/array/functions/array-diff-ukey.xml +++ b/reference/array/functions/array-diff-ukey.xml @@ -63,11 +63,9 @@ key_compare_func - callback function to use. - The callback function must return an integer less than, equal - to, or greater than zero if the first argument is considered to - be respectively less than, equal to, or greater than the second. + &return.callbacksort; + &callback.cmp; diff --git a/reference/array/functions/array-udiff.xml b/reference/array/functions/array-udiff.xml index 81e6a8a77c..d5dedec406 100644 --- a/reference/array/functions/array-udiff.xml +++ b/reference/array/functions/array-udiff.xml @@ -47,11 +47,9 @@ The callback comparison function. - The user supplied callback function is used for comparison. - It must return an integer less than, equal to, or greater than zero if - the first argument is considered to be respectively less than, equal - to, or greater than the second. + &return.callbacksort; + &callback.cmp; diff --git a/reference/array/functions/array-uintersect-assoc.xml b/reference/array/functions/array-uintersect-assoc.xml index 3f0c30bc1d..64394401ab 100644 --- a/reference/array/functions/array-uintersect-assoc.xml +++ b/reference/array/functions/array-uintersect-assoc.xml @@ -48,12 +48,9 @@ data_compare_func - For comparison is used the user supplied callback function. - It must return an integer less than, equal - to, or greater than zero if the first argument is considered to - be respectively less than, equal to, or greater than the - second. + &return.callbacksort; + &callback.cmp; diff --git a/reference/array/functions/array-uintersect-uassoc.xml b/reference/array/functions/array-uintersect-uassoc.xml index c742663d71..8d35ae9f45 100644 --- a/reference/array/functions/array-uintersect-uassoc.xml +++ b/reference/array/functions/array-uintersect-uassoc.xml @@ -46,12 +46,9 @@ data_compare_func - For comparison is used the user supplied callback function. - It must return an integer less than, equal - to, or greater than zero if the first argument is considered to - be respectively less than, equal to, or greater than the - second. + &return.callbacksort; + &callback.cmp;