简单教程
提交运行
代码编辑器:
<?php $people = array("Peter", "Joe", "Glenn", "Cleveland"); echo current($people) , "<br>"; echo next($people) , "<br>"; echo current($people) , "<br>"; echo prev($people) , "<br>"; echo end($people) , "<br>"; echo prev($people) , "<br>"; echo current($people) , "<br>"; echo reset($people) , "<br>"; echo next($people) , "<br>";
运行结果: