key

(PHP3 , PHP4 )

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