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

Iterator::next

(PHP 5, PHP 7)

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

说明

abstract public Iterator::next ( void ) : void

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

Note:

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

参数

此函数没有参数。

返回值

任何返回都将被忽略。

相关文章
php apciterator 获取迭代器的键php 迭代器 the directoryiterator classphp 预定义接口 iterator(迭代器)接口php 迭代器 the limititerator classphp 迭代器 the multipleiterator classphp 迭代器 the parentiterator classphp 数组 函数 用回调函数迭代地将数组简化为单一的值php 数组 函数 返回数组中当前的键/值对并将数组指针向前移动一步php fann 函数 使用一个输入集和一个期望的输出集来迭代训练一次。php spl 函数 为迭代器中每个元素调用一个用户自定义函数php spl 函数 计算迭代器中元素的个数php spl 函数 将迭代器中的元素拷贝到数组php 数组 函数 将数组中的内部指针向前移动一位php 迭代器 返回当前元素php 迭代器 返回当前元素的键php 迭代器 向前移动到下一个元素php 迭代器 返回到迭代器的第一个元素php 迭代器 检查当前位置是否有效php yaf config ini 向前移动到下一个元素php yaf config simple 向前移动到下一个元素
关注编程学问公众号
编程学问网 湘ICP备20001732号