current()
next()
prev() 范例
<?php $people = array("Peter", "Joe", "Glenn", "Cleveland"); echo current($people) . "<br />"; echo next($people) . "<br />"; echo prev($people); ?>
输出:
Peter Joe Peter
时间: 2024-10-29 04:04:12
current()
next()
prev() 范例
<?php $people = array("Peter", "Joe", "Glenn", "Cleveland"); echo current($people) . "<br />"; echo next($people) . "<br />"; echo prev($people); ?>
输出:
Peter Joe Peter