编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 迭代器 the appenditerator classphp 迭代器 arrayiterator 类php 迭代器 the callbackfilteriterator classphp 迭代器 the emptyiterator classphp 迭代器 the filesystemiterator classphp 迭代器 the infiniteiterator classphp 预定义接口 iteratoraggregate(聚合式迭代器)接口php 迭代器 the iteratoriterator classphp 迭代器 the recursivearrayiterator classphp 迭代器 the recursivecachingiterator classphp 反射 生成器反射类php 生成器 返回当前产生的键php 生成器 生成器继续执行php 生成器 重置迭代器php 生成器 检查迭代器是否被关闭php 聚合式迭代器 获取一个外部迭代器php reflectionclass 检查是否可迭代(iterateable)php reflectionfunctionabstract 判断函数是否是一个生成器函数php spl 迭代器
关注编程学问公众号
编程学问网 湘ICP备20001732号