key

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

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().