array_rand

(PHP 4, PHP 5, PHP 7) Pick one or more random entries out of an array mixed array_rand ( array $array [, int $num = 1 ] ) Picks one or more random entries out of an array, and returns the key (or keys) of the random entries. Parameters: array The input array. num Specifies how many entries should be picked. Returns:

array_push

(PHP 4, PHP 5, PHP 7) Push one or more elements onto the end of array int array_push ( array &$array, mixed $value1 [, mixed $... ] ) array_push() treats array as a stack, and pushes the passed variables onto the end of array. The length of array increases by the number of variables pushed. Has the same effect as: <?php $array[] = $var; ?> Note: If you use array_push() to add one element to the array it's be

array_product

(PHP 5 >= 5.1.0, PHP 7) Calculate the product of values in an array number array_product ( array $array ) array_product() returns the product of values in an array. Parameters: array The array. Returns: Returns the product as an integer or float. Changelog: 5.3.6 The product of an empty

array_pop

(PHP 4, PHP 5, PHP 7) Pop the element off the end of array mixed array_pop ( array &$array ) array_pop() pops and returns the last value of the array, shortening the array by one element. Note: This function will reset() the array pointer of the input array after use. Parameters: array The array to get the value from. Returns: Returns the las

array_pad

(PHP 4, PHP 5, PHP 7) Pad array to the specified length with a value array array_pad ( array $array, int $size, mixed $value ) array_pad() returns a copy of the array padded to size specified by size with value value. If size 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 equal to the length of the array then no padding takes place. It is po

array_multisort

(PHP 4, PHP 5, PHP 7) Sort multiple or multi-dimensional arrays bool array_multisort ( array &$array1 [, mixed $array1_sort_order = SORT_ASC [, mixed $array1_sort_flags = SORT_REGULAR [, mixed $... ]]] ) array_multisort() can be used to sort several arrays at once, or a multi-dimensional array by one or more dimensions. Associative (string) keys will be maintained, but numeric keys will be re-indexed.

array_merge

(PHP 4, PHP 5, PHP 7) Merge one or more arrays array array_merge ( array $array1 [, array $... ] ) Merges the elements of one or more arrays together so that the values of one are appended to the end of the previous one. It returns the resulting array. If the input arrays have the same string keys, then the later value for that key will overwrite the previous one. If, however, the arrays contain numeric keys, the later val

array_merge_recursive

(PHP 4 >= 4.0.1, PHP 5, PHP 7) Merge two or more arrays recursively array array_merge_recursive ( array $array1 [, array $... ] ) array_merge_recursive() merges the elements of one or more arrays together so that the values of one are appended to the end of the previous one. It returns the resulting array. If the input arrays have the same string keys, then the values for these keys are merged together into an array, an

array_map

(PHP 4 >= 4.0.6, PHP 5, PHP 7) Applies the callback to the elements of the given arrays array array_map ( callable $callback, array $array1 [, array $... ] ) array_map() returns an array containing all the elements of array1 after applying the callback function to each one. The number of parameters that the callback function accepts should match the number of arrays passed to the array_map() Parameters:

array_keys

(PHP 4, PHP 5, PHP 7) Return all the keys or a subset of the keys of an array array array_keys ( array $array [, mixed $search_value = null [, bool $strict = false ]] ) array_keys() returns the keys, numeric and string, from the array. If the optional search_value is specified, then only the keys for that value are returned. Otherwise, all the keys from the array are returned. Parameters: