PHP中的函数---reset()的用法
|
<p class="refpurpose"><span style="font-size: 14px; font-family: arial,helvetica,sans-serif;"><span class="refname">一、reset — <span class="dc-title">将数组的内部指针指向第一个单元 <div class="cnblogs_code"> reset() 将 Example #1 reset() 例子 $array = array(<span style="color: #800000;">'<span style="color: #800000;">step one<span style="color: #800000;">',<span style="color: #800000;">'<span style="color: #800000;">step two<span style="color: #800000;">',<span style="color: #800000;">'<span style="color: #800000;">step three<span style="color: #800000;">',<span style="color: #800000;">'<span style="color: #800000;">step four<span style="color: #800000;">'<span style="color: #000000;">);<span style="color: #008000;">//<span style="color: #008000;"> by default,the pointer is on the first element <span style="color: #008000;">//<span style="color: #008000;"> skip two steps <span style="color: #008000;">//<span style="color: #008000;"> reset pointer,start again on step one ?> (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
