in_array

(PHP 4, PHP 5, PHP 7) Checks if a value exists in an array bool in_array ( mixed $needle, array $haystack [, bool $strict = FALSE ] ) Searches haystack for needle using loose comparison unless strict is set. Parameters: needle The searched value. Note: If needle is a string, the comparison is done in a case-sensitive manner. haystack

extract

(PHP 4, PHP 5, PHP 7) Import variables into the current symbol table from an array int extract ( array &$array [, int $flags = EXTR_OVERWRITE [, string $prefix = NULL ]] ) Import variables from an array into the current symbol table. Checks each key to see whether it has a valid variable name. It also checks for collisions with existing variables in the symbol table. Parameters:

end

(PHP 4, PHP 5, PHP 7) Set the internal pointer of an array to its last element mixed end ( array &$array ) end() advances array's internal pointer to the last element, and returns its value. Parameters: array The array. This array is passed by reference because it is modified by the function. This means you must pass it a real variable and not a function returning an

each

(PHP 4, PHP 5, PHP 7) Return the current key and value pair from an array and advance the array cursor array each ( array &$array ) Return the current key and value pair from an array and advance the array cursor. After each() has executed, the array cursor will be left on the next element of the array, or past the last element if it hits the end of the array. You have to use reset() if you want to traverse the array a

current

(PHP 4, PHP 5, PHP 7) Return the current element in an array mixed current ( array &$array ) Every array has an internal pointer to its "current" element, which is initialized to the first element inserted into the array. Parameters: array The array. Returns: The current() function simply returns the value of the array element that's currentl

count

(PHP 4, PHP 5, PHP 7) Count all elements in an array, or something in an object int count ( mixed $array_or_countable [, int $mode = COUNT_NORMAL ] ) Counts all elements in an array, or something in an object. For objects, if you have SPL installed, you can hook into count() by implementing interface Countable. The interface has exactly one method, Countable::count(), which returns the return value for the count() functio

compact

(PHP 4, PHP 5, PHP 7) Create array containing variables and their values array compact ( mixed $varname1 [, mixed $... ] ) Creates an array containing variables and their values. For each of these, compact() looks for a variable with that name in the current symbol table and adds it to the output array such that the variable name becomes the key and the contents of the variable become the value for that key. In short, it d

asort

(PHP 4, PHP 5, PHP 7) Sort an array and maintain index association bool asort ( array &$array [, int $sort_flags = SORT_REGULAR ] ) This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual element order is significant. Parameters: array

arsort

(PHP 4, PHP 5, PHP 7) Sort an array in reverse order and maintain index association bool arsort ( array &$array [, int $sort_flags = SORT_REGULAR ] ) This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual element order is significant. Parameters:

array

(PHP 4, PHP 5, PHP 7) Create an array array array ([ mixed $... ] ) Creates an array. Read the section on the array type for more information on what an array is. Parameters: ... Syntax "index => values", separated by commas, define index and values. index may be of type string or integer. When index is omitted, an integer index is automatically generated, starting at