菜单切换
FACESOHO知行者
心灵
记录
远方
赞赏工具
源代码
运行
保存
<html> <body> <?php $people=array("Peter","Joe","Glenn","Cleveland"); echo "The key from the current position is: " . key($people); ?> </body> </html>
运行结果
<!DOCTYPE html> <html> <body> The key from the current position is: 0 </body> </html>