array_change_key_case | PHP 4.1.0 |
array array_change_key_case(array input[, int case=CASE_LOWER]) |
|
Returns an array with all string keys lowercased (or uppercased). |
array_chunk | PHP 4.1.0 |
array array_chunk(array input, int size[, bool preserve_keys]) |
|
Splits array into chunks. |
array_count_values | PHP 4.0 |
array array_count_values(array input) |
|
Returns the value as key and the frequency of that value in input as value. |
array_diff | PHP 4.0.1 |
array array_diff(array arr1, array arr2[, array ...]) |
|
Returns the entries of arr1 that have values that are not present in any of the others arguments. |
array_fill | PHP 4.1.0 |
array array_fill(int start_key, int num, mixed val) |
|
Creates an array containing num elements starting with index start_key each initialized to val. |
array_filter | PHP 4.0.6 |
array array_filter(array input[, mixed callback]) |
|
Filters elements from the array via the callback. |
array_flip | PHP 4.0 |
array array_flip(array input) |
|
Returns array with key/value pairs flipped. |
array_intersect | PHP 4.0.1 |
array array_intersect(array arr1, array arr2[, array ...]) |
|
Returns the entries of arr1 that have values that are present in all the other arguments. |
array_key_exists | PHP 4.1.0 |
bool array_key_exists(mixed key, array search) |
|
Checks if the given key or index exists in the array. |
array_keys | PHP 4.0 |
array array_keys(array input[, mixed search_value]) |
|
Returns just the keys from the input array, optionally for only the specified search_value. |
array_map | PHP 4.0.6 |
array array_map(mixed callback, array input1[, array input2 ,...]) |
|
Applies the callback to the elements in the given arrays. |
array_merge_recursive | PHP 4.0.1 |
array array_merge_recursive(array arr1, array arr2[, array ...]) |
|
Recursively merges elements from passed arrays into one array. |
array_merge | PHP 4.0 |
array array_merge(array arr1, array arr2[, array ...]) |
|
Merges elements from passed arrays into one array. |
array_multisort | PHP 4.0 |
bool array_multisort(array ar1[, SORT_ASC|SORT_DESC[, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]][, array ar2[, SORT_ASC|SORT_DESC[, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]], ...]) |
|
Sorts multiple arrays at once similar to how ORDER BY clause works in SQL. |
array_pad | PHP 4.0 |
array array_pad(array input, int pad_size, mixed pad_value) |
|
Returns a copy of input array padded with pad_value to size pad_size. |
array_pop | PHP 4.0 |
mixed array_pop(array stack) |
|
Pops an element off the end of the array. |
array_push | PHP 4.0 |
int array_push(array stack, mixed var[, mixed ...]) |
|
Pushes elements onto the end of the array. |
array_rand | PHP 4.0 |
mixed array_rand(array input[, int num_req]) |
|
Returns key/keys for random entry/entries in the array. |
array_reduce | PHP 4.0.5 |
mixed array_reduce(array input, mixed callback[, int initial]) |
|
Iteratively reduces the array to a single value via the callback. |
array_reverse | PHP 4.0 |
array array_reverse(array input[, bool preserve keys]) |
|
Returns input as a new array with the order of the entries reversed. |
array_search | PHP 4.0.5 |
mixed array_search(mixed needle, array haystack[, bool strict]) |
|
Searches the array for a given value and returns the corresponding key if successful. |
array_shift | PHP 4.0 |
mixed array_shift(array stack) |
|
Pops an element off the beginning of the array. |
array_slice | PHP 4.0 |
array array_slice(array input, int offset[, int length]) |
|
Returns elements specified by offset and length. |
array_splice | PHP 4.0 |
array array_splice(array input, int offset[, int length[, array replacement]]) |
|
Removes the elements designated by offset and length and replaces them with supplied array. |
array_sum | PHP 4.0.4 |
mixed array_sum(array input) |
|
Returns the sum of the array entries. |
array_unique | PHP 4.0.1 |
array array_unique(array input) |
|
Removes duplicate values from array. |
array_unshift | PHP 4.0 |
int array_unshift(array stack, mixed var[, mixed ...]) |
|
Pushes elements onto the beginning of the array. |
array_values | PHP 4.0 |
array array_values(array input) |
|
Returns just the values from the input array. |
array_walk | PHP 3.0.3 |
bool array_walk(array input, string funcname[, mixed userdata]) |
|
Applies a user function to every member of an array. |
array | PHP 3.0 |
array array([mixed var[, ...]]) |
|
Creates an array. |
arsort | PHP 3.0 |
bool arsort(array array_arg[, int sort_flags]) |
|
Sorts an array in reverse order and maintains index association. |
asort | PHP 3.0 |
bool asort(array array_arg[, int sort_flags]) |
|
Sorts an array and maintains index association. |
compact | PHP 4.0 |
array compact(mixed var_names[, mixed ...]) |
|
Creates a hash containing variables and their values. |
count | PHP 3.0 |
int count(mixed var[, int mode]) |
|
Counts the number of elements in a variable (usually an array). |
current | PHP 3.0 |
mixed current(array array_arg) |
|
Returns the element currently pointed to by the internal array pointer. |
each | PHP 3.0 |
array each(array arr) |
|
Returns the current key/value pair in the passed array and advances the pointer to the next element. |
end | PHP 3.0 |
mixed end(array array_arg) |
|
Advances array argument's internal pointer to the last element and returns it. |
extract | PHP 3.0.7 |
int extract(array var_array[, int extract_type[, string prefix]]) |
|
Imports variables into symbol table from an array. |
in_array | PHP 4.0 |
bool in_array(mixed needle, array haystack[, bool strict]) |
|
Checks if the given value exists in the array. |
key | PHP 3.0 |
mixed key(array array_arg) |
|
Returns the key of the element currently pointed to by the internal array pointer. |
krsort | PHP 3.0.13 |
bool krsort(array array_arg[, int sort_flags]) |
|
Sorts an array by key value in reverse order. |
ksort | PHP 3.0 |
bool ksort(array array_arg[, int sort_flags]) |
|
Sorts an array by key. |
list | PHP 3.0 |
void list(mixed var[, mixed var[, ...]]) |
|
Assigns variables as if they were an array. |
natcasesort | PHP 4.0 |
void natcasesort(array array_arg) |
|
Sorts an array using case-insensitive natural sort. |
natsort | PHP 4.0 |
void natsort(array array_arg) |
|
Sorts an array using natural sort. |
next | PHP 3.0 |
mixed next(array array_arg) |
|
Moves array argument's internal pointer to the next element and returns it. |
prev | PHP 3.0 |
mixed prev(array array_arg) |
|
Moves an array's internal pointer to the previous element and returns it. |
range | PHP 3.0.8 |
array range(mixed low, mixed high) |
|
Creates an array containing the range of integers or characters from low to high (inclusive). |
reset | PHP 3.0 |
mixed reset(array array_arg) |
|
Sets an array's internal pointer to the first element and returns it. |
rsort | PHP 3.0 |
bool rsort(array array_arg[, int sort_flags]) |
|
Sorts an array in reverse order. |
shuffle | PHP 3.0.8 |
bool shuffle(array array_arg) |
|
Randomly shuffles the contents of an array. |
sort | PHP 3.0 |
bool sort(array array_arg[, int sort_flags]) |
|
Sorts an array. |
uasort | PHP 3.0.4 |
bool uasort(array array_arg, string cmp_function) |
|
Sorts an array with a user-defined comparison function and maintains index association. |
uksort | PHP 3.0.4 |
bool uksort(array array_arg, string cmp_function) |
|
Sorts an array by keys using a user-defined comparison function. |
usort | PHP 3.0.3 |
bool usort(array array_arg, string cmp_function) |
|
Sorts an array by values using a user-defined comparison function. |