Array Functions
Array Functions
3. array_column: Returns the values from a single column in the input array.
4. array_combine: Creates an array by using one array for keys and another for values.
12. array_flip: Exchanges all keys with their associated values in an array.
17. array_keys: Returns all the keys or a subset of the keys of an array.
18. array_map: Applies a callback function to the elements of the given arrays.
23. array_pop: Pops the element off the end of the array.
25. array_push: Pushes one or more elements onto the end of an array.
26. array_rand: Picks one or more random entries out of an array.
28. array_replace: Replaces elements from passed arrays into the first array.
31. array_search: Searches the array for a given value and returns the first
corresponding key if successful.
34. array_splice: Removes a portion of the array and replaces it with something else.
36. array_udiff: Computes the difference of arrays by using a callback function for data
comparison.
37. array_udiff_assoc: Computes the difference of arrays with additional index check,
with a callback function.
38. array_udiff_uassoc: Computes the difference of arrays with additional index check,
compares data and indexes by a callback function.
47. arsort: Sorts an array in reverse order and maintains index association.
52. each: Returns the current key and value pair from an array and advances the array
cursor.
54. extract: Imports variables into the current symbol table from an array.
60. natcasesort: Sorts an array using a case insensitive natural order algorithm.
65. reset: Sets the internal pointer of an array to its first element.