php一些技巧函数

current()
next()
prev()

范例
<?php

$people = array("Peter", "Joe", "Glenn", "Cleveland");



echo current($people) . "<br />";

echo next($people) . "<br />"; 

echo prev($people); 

?>

 

输出:

Peter

Joe

Peter

你可能感兴趣的:(PHP)