在PHP中使用end()函数
<div id="article_content" class="article_content clearfix"><link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/kdoc_html_views-1a98987dfd.css">
<link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/ck_htmledit_views-6e43165c0a.css">
<div id="content_views" class="htmledit_views">
<h2>定义和用法</h2>
<p>end() 函数将内部指针指向数组中的最后一个元素,并输出。</p>
<p>相关的方法:</p>
<ul><li><ahref="https://www.runoob.com/php/func-array-current.html">current()</a> - 返回数组中的当前元素的值。</li><li><ahref="https://www.runoob.com/php/func-array-next.html">next()</a> - 将内部指针指向数组中的下一个元素,并输出。</li><li><ahref="https://www.runoob.com/php/func-array-prev.html">prev()</a> - 将内部指针指向数组中的上一个元素,并输出。</li><li><ahref="https://www.runoob.com/php/func-array-reset.html">reset()</a> - 将内部指针指向数组中的第一个元素,并输出。</li><li><ahref="https://www.runoob.com/php/func-array-each.html">each()</a> - 返回当前元素的键名和键值,并将内部指针向前移动。</li></ul>
<hr>
<h2>语法</h2>
<p>end(<em>array</em>)</p>
<p></p>
<table><tbody><tr><th>参数</th><th>描述</th></tr><tr><td style="vertical-align:top;"><em>array</em></td><td style="vertical-align:top;"> <p>必需。规定要使用的数组。</p> </td></tr></tbody></table>
<p>拿到数据中的最后一个值,然后去输出</p>
<p></p>
<p> </p>
<p></p>
</div>
</div>
<div id="treeSkill"></div>
页:
[1]