我有一个数组 $food 像:
Array
(
[apple] => Array
(
[color] => red
[type] => fruit
)
[choco] => Array
(
[color] => brown
[type] => candy
)
)
有没有我可以做的功能:
get_key($food, 0) 它会返回 index 0, apple
get_key($food, 1) 返回 choco