PHP Array Functions
PHP Array Functions
com LOG IN
Installation
The array functions are part of the PHP core. There is no installation needed to use these
functions.
array_column() Returns the values from a single column in the input array
array_combine() Creates an array by using the elements from one "keys" array and
one "values" array
array_count_values() Counts all the values of an array
array_diff_assoc() Compare arrays, and returns the differences (compare keys and
values)
array_diff_key() Compare arrays, and returns the differences (compare keys only)
array_diff_uassoc() Compare arrays, and returns the differences (compare keys and
values, using a user-defined key comparison function)
array_diff_ukey() Compare arrays, and returns the differences (compare keys only,
using a user-defined key comparison function)
array_intersect() Compare arrays, and returns the matches (compare values only)
array_intersect_assoc() Compare arrays and returns the matches (compare keys and
values)
array_intersect_key() Compare arrays, and returns the matches (compare keys only)
array_intersect_uassoc() Compare arrays, and returns the matches (compare keys and
values, using a user-defined key comparison function)
array_intersect_ukey() Compare arrays, and returns the matches (compare keys only,
using a user-defined key comparison function)
array_replace() Replaces the values of the first array with the values from
following arrays
array_replace_recursive() Replaces the values of the first array with the values from
following arrays recursively
array_search() Searches an array for a given value and returns the key
array_shift() Removes the first element from an array, and returns the value of
the removed element
array_udiff_assoc() Compare arrays, and returns the differences (compare keys and
values, using a built-in function to compare the keys and a user-
defined function to compare the values)
array_udiff_uassoc() Compare arrays, and returns the differences (compare keys and
values, using two user-defined key comparison functions)
array_uintersect() Compare arrays, and returns the matches (compare values only,
using a user-defined key comparison function)
array_uintersect_assoc() Compare arrays, and returns the matches (compare keys and
values, using a built-in function to compare the keys and a user-
defined function to compare the values)
array_uintersect_uassoc() Compare arrays, and returns the matches (compare keys and
values, using two user-defined key comparison functions)
each() Deprecated from PHP 7.2. Returns the current key and value pair
from an array
extract() Imports variables into the current symbol table from an array
❮ Previous Next ❯
COLOR PICKER
SHOP
HOW TO
Tabs
Dropdowns
Accordions
Side Navigation
Top Navigation
Modal Boxes
Progress Bars
Parallax
Login Form
HTML Includes
Google Maps