prev

(PHP 4, PHP 5, PHP 7) Rewind the internal array pointer mixed prev ( array &$array ) Rewind the internal array pointer. prev() behaves just like next(), except it rewinds the internal array pointer one place instead of advancing it. Parameters: array The input array. Returns: Returns the array value in the previous place that's pointed to b

pos

(PHP 4, PHP 5, PHP 7) Alias of current() This function is an alias of: current()

next

(PHP 4, PHP 5, PHP 7) Advance the internal array pointer of an array mixed next ( array &$array ) next() behaves like current(), with one difference. It advances the internal array pointer one place forward before returning the element value. That means it returns the next array value and advances the internal array pointer by one. Parameters: array The array being af

natsort

(PHP 4, PHP 5, PHP 7) Sort an array using a "natural order" algorithm bool natsort ( array &$array ) This function implements a sort algorithm that orders alphanumeric strings in the way a human being would while maintaining key/value associations. This is described as a "natural ordering". An example of the difference between this algorithm and the regular computer string sorting algorithms (used in sort()) can be seen

natcasesort

(PHP 4, PHP 5, PHP 7) Sort an array using a case insensitive "natural order" algorithm bool natcasesort ( array &$array ) natcasesort() is a case insensitive version of natsort(). This function implements a sort algorithm that orders alphanumeric strings in the way a human being would while maintaining key/value associations. This is described as a "natural ordering". Parameters:

list

(PHP 4, PHP 5, PHP 7) Assign variables as if they were an array array list ( mixed $var1 [, mixed $... ] ) Like array(), this is not really a function, but a language construct. list() is used to assign a list of variables in one operation. Parameters: var1 A variable. Returns: Returns the assigned array. Changelog

ksort

(PHP 4, PHP 5, PHP 7) Sort an array by key bool ksort ( array &$array [, int $sort_flags = SORT_REGULAR ] ) Sorts an array by key, maintaining key to data correlations. This is useful mainly for associative arrays. Parameters: array The input array. sort_flags You may modify the behavior of the sort using the optional parameter sor

krsort

(PHP 4, PHP 5, PHP 7) Sort an array by key in reverse order bool krsort ( array &$array [, int $sort_flags = SORT_REGULAR ] ) Sorts an array by key in reverse order, maintaining key to data correlations. This is useful mainly for associative arrays. Parameters: array The input array. sort_flags You may modify the behavior of the so

key

(PHP 4, PHP 5, PHP 7) Fetch a key from an array mixed key ( array &$array ) key() returns the index element of the current array position. Parameters: array The array. Returns: The key() function simply returns the key of the array element that's currently being pointed to by the internal pointer. It does not move the pointer in any way. If t

key_exists

(PHP 4 >= 4.0.6, PHP 5, PHP 7) Alias of array_key_exists() This function is an alias of: array_key_exists().