array_diff

(PHP 4 >= 4.0.1, PHP 5, PHP 7) Computes the difference of arrays array array_diff ( array $array1, array $array2 [, array $... ] ) Compares array1 against one or more other arrays and returns the values in array1 that are not present in any of the other arrays. Parameters: array1 The array to compare from array2 An array to compare a

array_diff_ukey

(PHP 5 >= 5.1.0, PHP 7) Computes the difference of arrays using a callback function on the keys for comparison array array_diff_ukey ( array $array1, array $array2 [, array $... ], callable $key_compare_func ) Compares the keys from array1 against the keys from array2 and returns the difference. This function is like array_diff() except the comparison is done on the keys instead of the values. Unlike array_diff_key() a

array_diff_uassoc

(PHP 5, PHP 7) Computes the difference of arrays with additional index check which is performed by a user supplied callback function array array_diff_uassoc ( array $array1, array $array2 [, array $... ], callable $key_compare_func ) Compares array1 against array2 and returns the difference. Unlike array_diff() the array keys are used in the comparison. Unlike array_diff_assoc() an user supplied callback function is used f

array_diff_key

(PHP 5 >= 5.1.0, PHP 7) Computes the difference of arrays using keys for comparison array array_diff_key ( array $array1, array $array2 [, array $... ] ) Compares the keys from array1 against the keys from array2 and returns the difference. This function is like array_diff() except the comparison is done on the keys instead of the values. Parameters: array1 The array t

array_diff_assoc

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Computes the difference of arrays with additional index check array array_diff_assoc ( array $array1, array $array2 [, array $... ] ) Compares array1 against array2 and returns the difference. Unlike array_diff() the array keys are also used in the comparison. Parameters: array1 The array to compare from array2

array_count_values

(PHP 4, PHP 5, PHP 7) Counts all the values of an array array array_count_values ( array $array ) array_count_values() returns an array using the values of array as keys and their frequency in array as values. Parameters: array The array of values to count Returns: Returns an associative array of values from array as keys and their count as value

array_combine

(PHP 5, PHP 7) Creates an array by using one array for keys and another for its values array array_combine ( array $keys, array $values ) Creates an array by using the values from the keys array as keys and the values from the values array as the corresponding values. Parameters: keys Array of keys to be used. Illegal values for key will be converted to string.

array_column

(PHP 5 >= 5.5.0, PHP 7) Return the values from a single column in the input array array array_column ( array $input, mixed $column_key [, mixed $index_key = null ] ) array_column() returns the values from a single column of the input, identified by the column_key. Optionally, an index_key may be provided to index the values in the returned array by the values from the index_key column of the input array.

array_chunk

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Split an array into chunks array array_chunk ( array $array, int $size [, bool $preserve_keys = false ] ) Chunks an array into arrays with size elements. The last chunk may contain less than size elements. Parameters: array The array to work on size The size of each chunk preserv

array_change_key_case

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Changes the case of all keys in an array array array_change_key_case ( array $array [, int $case = CASE_LOWER ] ) Returns an array with all keys from array lowercased or uppercased. Numbered indices are left as is. Parameters: array The array to work on case Either CASE_UPPER or CASE_LOWER (default)