实例
输出数组中的当前元素的值:
<?php
$people = array("Bill", "Steve", "Mark", "David");
echo current($people)
. "<br>";
?>
运行结果:Bill
输出数组中的当前元素的值:
<?php
$people = array("Bill", "Steve", "Mark", "David");
echo current($people)
. "<br>";
?>
运行结果:Bill