编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « Iterator::key
  • Iterator::rewind »
  • PHP Manual
  • 迭代器
  • 向前移动到下一个元素

Iterator::next

(PHP 5, PHP 7)

Iterator::next — 向前移动到下一个元素

说明

abstract public Iterator::next ( void ) : void

移动当前位置到下一个元素。

Note:

此方法在 foreach 循环之后被调用。

参数

此函数没有参数。

返回值

任何返回都将被忽略。

相关文章
php 迭代器 arrayiterator 类php 迭代器 the filesystemiterator classphp 迭代器 the filteriterator classphp 迭代器 the recursivecallbackfilteriterator classphp 迭代器 the recursivedirectoryiterator classphp 数组 函数 为数组的每个元素应用回调函数php 数组 函数 返回数组中当前的键/值对并将数组指针向前移动一步php spl 函数 为迭代器中每个元素调用一个用户自定义函数php spl 函数 计算迭代器中元素的个数php spl 函数 将迭代器中的元素拷贝到数组php 数组 函数 将数组中的内部指针向前移动一位php xml 解析器函数 建立起始和终止元素处理器php 迭代器 返回当前元素php 迭代器 返回当前元素的键php 迭代器 向前移动到下一个元素php 迭代器 返回到迭代器的第一个元素php memcache 替换已经存在的元素的值php memcached 检索一个元素php yaf config ini 向前移动到下一个元素php yaf config simple 向前移动到下一个元素
关注编程学问公众号
编程学问网 湘ICP备20001732号