编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « Generator::next
  • Generator::send »
  • PHP Manual
  • 生成器
  • 重置迭代器

Generator::rewind

(PHP 5 >= 5.5.0, PHP 7)

Generator::rewind — 重置迭代器

说明

public Generator::rewind ( void ) : void

如果迭代已经开始了,这里会抛出一个异常。

参数

此函数没有参数。

返回值

没有返回值。

相关文章
php apciterator 获取迭代器的键php apciterator 倒退迭代器php 迭代器 the directoryiterator classphp 预定义接口 生成器类php 迭代器 the globiterator classphp 预定义接口 iterator(迭代器)接口php 迭代器 the limititerator classphp 迭代器 the multipleiterator classphp 迭代器 the parentiterator classphp 数组 函数 用回调函数迭代地将数组简化为单一的值php fann 函数 使用一个输入集和一个期望的输出集来迭代训练一次。php 生成器 返回当前产生的值php 生成器 返回当前产生的键php 生成器 重置迭代器php 生成器 检查迭代器是否被关闭php 迭代器 返回当前元素的键php 迭代器 向前移动到下一个元素php 迭代器 返回到迭代器的第一个元素php 迭代器 检查当前位置是否有效php reflectionfunctionabstract 判断函数是否是一个生成器函数
关注编程学问公众号
编程学问网 湘ICP备20001732号