... array &$array ). key() returns the index element of the current array position. ... Note that using key($array) in a foreach loop may have unexpected results.
www.google.com.tw