实例
输出数组中的当前元素的值:
<?php
$people = array("Bill", "Steve", "Mark", "David");
echo current($people) . "<br>";
?>
运行结果:Bill
PHP current() 函数
阅读 87
2022-08-22
输出数组中的当前元素的值:
<?php
$people = array("Bill", "Steve", "Mark", "David");
echo current($people) . "<br>";
?>
运行结果:Bill
相关推荐
精彩评论(0)