key

(PHP 3, PHP 4 )

key -- 从结合数组中取得键名

说明

mixed key ( array array)

key() 返回数组中当前单元的键名。

参见 current()next()