array_udiff_assoc

(PHP 5, PHP 7) Computes the difference of arrays with additional index check, compares data by a callback function array array_udiff_assoc ( array $array1, array $array2 [, array $... ], callable $value_compare_func ) Computes the difference of arrays with additional index check, compares data by a callback function. Note: Please note that this function only checks one dimension of a n-dimensional array. Of course you can

array_sum

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Calculate the sum of values in an array number array_sum ( array $array ) array_sum() returns the sum of values in an array. Parameters: array The input array. Returns: Returns the sum of values as an integer or float. Examples: array_sum() examples

array_splice

(PHP 4, PHP 5, PHP 7) Remove a portion of the array and replace it with something else array array_splice ( array &$input, int $offset [, int $length = 0 [, mixed $replacement = array() ]] ) Removes the elements designated by offset and length from the input array, and replaces them with the elements of the replacement array, if supplied. Note that numeric keys in input are not preserved. Note: If replacement is no

array_slice

(PHP 4, PHP 5, PHP 7) Extract a slice of the array array array_slice ( array $array, int $offset [, int $length = NULL [, bool $preserve_keys = false ]] ) array_slice() returns the sequence of elements from the array array as specified by the offset and length parameters. Parameters: array The input array. offset If offset is non-nega

array_shift

(PHP 4, PHP 5, PHP 7) Shift an element off the beginning of array mixed array_shift ( array &$array ) array_shift() shifts the first value of the array off and returns it, shortening the array by one element and moving everything down. All numerical array keys will be modified to start counting from zero while literal keys won't be touched. Note: This function will reset() the array pointer of the input array after use.

array_search

(PHP 4 >= 4.0.5, PHP 5, PHP 7) Searches the array for a given value and returns the corresponding key if successful mixed array_search ( mixed $needle, array $haystack [, bool $strict = false ] ) Searches haystack for needle. Parameters: needle The searched value. Note: If needle is a string, the comparison is done in a case-sensitive manner.

array_reverse

(PHP 4, PHP 5, PHP 7) Return an array with elements in reverse order array array_reverse ( array $array [, bool $preserve_keys = false ] ) Takes an input array and returns a new array with the order of the elements reversed. Parameters: array The input array. preserve_keys If set to TRUE numeric keys are preserved. Non-numeric keys are

array_replace

(PHP 5 >= 5.3.0, PHP 7) Replaces elements from passed arrays into the first array array array_replace ( array $array1, array $array2 [, array $... ] ) array_replace() replaces the values of array1 with values having the same keys in each of the following arrays. If a key from the first array exists in the second array, its value will be replaced by the value from the second array. If the key exists in the second array, an

array_replace_recursive

(PHP 5 >= 5.3.0, PHP 7) Replaces elements from passed arrays into the first array recursively array array_replace_recursive ( array $array1, array $array2 [, array $... ] ) array_replace_recursive() replaces the values of array1 with the same values from all the following arrays. If a key from the first array exists in the second array, its value will be replaced by the value from the second array. If the key exists in th

array_reduce

(PHP 4 >= 4.0.5, PHP 5, PHP 7) Iteratively reduce the array to a single value using a callback function mixed array_reduce ( array $array, callable $callback [, mixed $initial = NULL ] ) array_reduce() applies iteratively the callback function to the elements of the array, so as to reduce the array to a single value. Parameters: array The input array.