each()
each - Return the current key and value pair from an array and advance the array cursor
Syntax
array each (
array &$array)
Arguments
Description
Return the current key and value pair from an array and advance the array cursor.
Version
PHP 4, 5
Return value
Returns the current key and value pair from the array array. This pair is returned in a four-element array, with the keys 0, 1, key, and value. Elements 0and keycontain the key name of the array element, and 1and valuecontain the data.