From cd943f94a013b74df8765ab8e1a620a916a64a85 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Fri, 4 Dec 2020 00:35:15 +0000 Subject: [PATCH] Generate array methodsynopses based on stubs Partial merge of . git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351860 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../array/functions/array-change-key-case.xml | 3 +- reference/array/functions/array-chunk.xml | 13 +++--- reference/array/functions/array-column.xml | 13 +++--- reference/array/functions/array-fill.xml | 13 +++--- reference/array/functions/array-filter.xml | 17 +++++--- .../array/functions/array-key-exists.xml | 5 +-- reference/array/functions/array-key-first.xml | 4 +- reference/array/functions/array-key-last.xml | 4 +- reference/array/functions/array-map.xml | 5 +-- reference/array/functions/array-pad.xml | 21 +++++----- reference/array/functions/array-rand.xml | 3 +- .../functions/array-replace-recursive.xml | 3 +- reference/array/functions/array-replace.xml | 3 +- reference/array/functions/array-search.xml | 3 +- reference/array/functions/array-slice.xml | 3 +- reference/array/functions/array-splice.xml | 40 ++++++++++++++----- reference/array/functions/array-unique.xml | 11 +++-- reference/array/functions/arsort.xml | 7 ++-- reference/array/functions/asort.xml | 7 ++-- reference/array/functions/compact.xml | 5 +-- reference/array/functions/count.xml | 13 +++--- reference/array/functions/current.xml | 3 +- reference/array/functions/end.xml | 3 +- reference/array/functions/extract.xml | 5 +-- reference/array/functions/key.xml | 5 +-- reference/array/functions/krsort.xml | 7 ++-- reference/array/functions/ksort.xml | 7 ++-- reference/array/functions/next.xml | 3 +- reference/array/functions/prev.xml | 3 +- reference/array/functions/range.xml | 5 +-- reference/array/functions/reset.xml | 3 +- reference/array/functions/rsort.xml | 7 ++-- reference/array/functions/sort.xml | 9 ++--- reference/array/functions/uasort.xml | 5 +-- reference/array/functions/uksort.xml | 5 +-- reference/array/functions/usort.xml | 5 +-- 36 files changed, 131 insertions(+), 140 deletions(-) diff --git a/reference/array/functions/array-change-key-case.xml b/reference/array/functions/array-change-key-case.xml index 64e78077bb..b9e5bd3a7d 100644 --- a/reference/array/functions/array-change-key-case.xml +++ b/reference/array/functions/array-change-key-case.xml @@ -11,7 +11,7 @@ arrayarray_change_key_case arrayarray - intcaseCASE_LOWER + intcaseCASE_LOWER Returns an array with all keys from array lowercased @@ -101,7 +101,6 @@ Array - - + array_key_exists Checks if the given key or index exists in the array @@ -10,7 +10,7 @@ &reftitle.description; boolarray_key_exists - mixedkey + stringintkey arrayarray @@ -128,7 +128,6 @@ array_key_exists('first', $search_array); - - array_key_first @@ -10,7 +9,7 @@ &reftitle.description; - mixedarray_key_first + intstringnullarray_key_first arrayarray @@ -105,7 +104,6 @@ if (!function_exists('array_key_first')) { - - array_key_last @@ -10,7 +9,7 @@ &reftitle.description; - mixedarray_key_last + intstringnullarray_key_last arrayarray @@ -50,7 +49,6 @@ - - + array_map Applies the callback to the elements of the given arrays @@ -10,7 +10,7 @@ &reftitle.description; arrayarray_map - callablecallback + callablenullcallback arrayarray arrayarrays @@ -388,7 +388,6 @@ array(1) { - - + array_pad Pad array to the specified length with a value @@ -11,17 +11,17 @@ arrayarray_pad arrayarray - intsize + intlength mixedvalue array_pad returns a copy of the array padded to size specified by - size with value + length with value value. If - size is positive then the array is + length is positive then the array is padded on the right, if it's negative then on the left. If the - absolute value of size is less than or + absolute value of length is less than or equal to the length of the array then no padding takes place. It is possible to add at most 1048576 elements at a time. @@ -41,7 +41,7 @@ - size + length New size of the array. @@ -53,7 +53,7 @@ Value to pad if array is less than - size. + length. @@ -65,10 +65,10 @@ &reftitle.returnvalues; Returns a copy of the array padded to size specified - by size with value - value. If size is + by length with value + value. If length is positive then the array is padded on the right, if it's negative then - on the left. If the absolute value of size is less + on the left. If the absolute value of length is less than or equal to the length of the array then no padding takes place. @@ -108,7 +108,6 @@ $result = array_pad($input, 2, "noop"); -