keywords:
Bookmark and Share



Front Back
Calculate the product of values in an array
  • array_product ( array $array )
Push one or more elements onto the end of array
  • array_push ( array &$array, mixed $var [, mixed $...] )
Pick one or more random entries out of an array
  • array_rand ( array $input [, int $num_req] )
Iteratively reduce the array to a single value using a callback function
  • array_reduce ( array $input, callback $function [, int $initial] )
Return an array with elements in reverse order
array_reverse ( array $array [, bool $preserve_keys] )
Searches the array for a given value and returns the corresponding key if successful
  • array_search ( mixed $needle, array $haystack [, bool $strict] )
Shift an element off the beginning of array
  • array_shift ( array &$array )
Extract a slice of the array
  • array_slice ( array $array, int $offset [, int $length [, bool $preserve_keys]] )
Remove a portion of the array and replace it with something else
  • array_splice ( array &$input, int $offset [, int $length [, array $replacement]] )
Calculate the sum of values in an array
  • array_sum ( array $array )
Computes the difference of arrays with additional index check, compares data by a callback function
  • array_udiff_assoc ( array $array1, array $array2 [, array $ ..., callback $data_compare_func] )
Computes the difference of arrays with additional index check, compares data and indexes by a callback function
  • array_udiff_uassoc ( array $array1, array $array2 [, array $ ..., callback $data_compare_func, callback $key_compare_func] )
Computes the difference of arrays by using a callback function for data comparison
  • array_udiff ( array $array1, array $array2 [, array $ ..., callback $data_compare_func] )
Computes the intersection of arrays with additional index check, compares data by a callback function
  • array_uintersect_assoc ( array $array1, array $array2 [, array $ ..., callback $data_compare_func] )
Computes the intersection of arrays with additional index check, compares data and indexes by a callback functions
  • array_uintersect_uassoc ( array $array1, array $array2 [, array $ ..., callback $data_compare_func, callback $key_compare_func] )
Computes the intersection of arrays, compares data by a callback function
  • array_uintersect ( array $array1, array $array2 [, array $ ..., callback $data_compare_func] )
Removes duplicate values from an array
  • array_unique ( array $array )
Prepend one or more elements to the beginning of an array
  • array_unshift ( array &$array, mixed $var [, mixed $...] )
Return all the values of an array
  • array_values ( array $input )
Apply a user function recursively to every member of an array
  • array_walk_recursive ( array &$input, callback $funcname [, mixed $userdata] )
Apply a user function to every member of an array
  • array_walk ( array &$array, callback $funcname [, mixed $userdata] )
Create an array
  • array ( [mixed $...] )
Sort an array in reverse order and maintain index association
  • arsort ( array &$array [, int $sort_flags] )
Sort an array and maintain index association
  • asort ( array &$array [, int $sort_flags] )
Create array containing variables and their values
  • compact ( mixed $varname [, mixed $...] )
Count elements in an array, or properties in an object
count ( mixed $var [, int $mode] )
Return the current element in an array
current ( array &$array )
Return the current key and value pair from an array and advance the array cursor
each ( array &$array )
Set the internal pointer of an array to its last element
end ( array &$array )
Import variables into the current symbol table from an array
extract ( array $var_array [, int $extract_type [, string $prefix]] )
Checks if a value exists in an array
in_array ( mixed $needle, array $haystack [, bool $strict] )
Fetch a key from an associative array
key ( array &$array )
Sort an array by key in reverse order
krsort ( array &$array [, int $sort_flags] )
Sort an array by key
ksort ( array &$array [, int $sort_flags] )
Assign variables as if they were an array
list ( mixed $varname, mixed $... )
Sort an array using a case insensitive "natural order" algorithm
natcasesort ( array &$array )
Sort an array using a "natural order" algorithm
natsort ( array &$array )
Advance the internal array pointer of an array
next ( array &$array )
pos
Alias of current()
Rewind the internal array pointer
prev ( array &$array )
Create an array containing a range of elements
range ( mixed $low, mixed $high [, number $step] )
Set the internal pointer of an array to its first element
reset ( array &$array )
Sort an array in reverse order
rsort ( array &$array [, int $sort_flags] )
Shuffle an array
shuffle ( array &$array )
sizeof
Alias of count()
Sort an array
sort ( array &$array [, int $sort_flags] )
Sort an array with a user-defined comparison function and maintain index association
uasort ( array &$array, callback $cmp_function )
Sort an array by keys using a user-defined comparison function
uksort ( array &$array, callback $cmp_function )
Sort an array by values using a user-defined comparison function
usort ( array &$array, callback $cmp_function )
|< Previous x of y cards Next >|