python常用函数大全,prev php,PHP prev() 函数 ——jQuery中文网

 2023-09-23 阅读 23 评论 0

摘要:实例 1所有相关方法的演示:$people = array("Peter", "Joe", "Glenn", "Cleveland");echocurrent($people) . ""; // The current element is Peterpython常用函数大全。echonext($people) . ""; // The next ele

实例 1

所有相关方法的演示:

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

echo

current($people) . "
"; // The current element is Peter

python常用函数大全。echo

next($people) . "
"; // The next element of Peter is Joe

echo

current($people) . "
"; // Now the current element is Joe

echo prev($people) . "
";

// The previous element of Joe is Peter

php中文网培训、echo end($people) . "
"; //

The last element is Cleveland

echo prev($people) . "
"; // The

previous element of Cleveland is Glenn

echo current($people) . "
"; //

Now the current element is Glenn

php range函数、echo reset($people) . "
"; // Moves

the internal pointer to the first element of the array, which is Peter

echo next($people) . "
"; // The next element of Peter is Joe

print_r (each($people)); // Returns the key and value of the current element

(now Joe), and moves the internal pointer forward

?>

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://hbdhgg.com/3/88359.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息