key

(PHP 3, PHP 4 )

key -- Fetch a key from an associative array

Description

mixed key ( array array)

key() returns the index element of the current array position.

See also current() and next().