📅  最后修改于: 2022-03-11 14:53:37.136000             🧑  作者: Mango
foreach($yourArray as $key => $value) {
echo '' . $key . '';
}
// OR
//Use functions
key($array); //Returns current key
reset($array); //Moves array pointer to first record
current($array); //Returns current value
next($array); //Moves array pointer to next record and returns its value
prev($array); //Moves array pointer to previous record and returns its value
end($array); //Moves array pointer to last record and returns its value