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

Generator::rewind

(PHP 5 >= 5.5.0, PHP 7)

Generator::rewind — 重置迭代器

说明

public Generator::rewind ( void ) : void

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

参数

此函数没有参数。

返回值

没有返回值。

相关文章
php apciterator 构造一个 apciterator 迭代器对象php apciterator 获取迭代器的键php 预定义接口 生成器类php 迭代器 the globiterator classphp 迭代器 the norewinditerator classphp 迭代器 the recursiveregexiterator classphp 迭代器 the recursivetreeiterator classphp 迭代器 the regexiterator classphp 数组 函数 用回调函数迭代地将数组简化为单一的值php fann 函数 使用一个输入集和一个期望的输出集来迭代训练一次。php spl 函数 将迭代器中的元素拷贝到数组php 生成器 重置迭代器php 生成器 检查迭代器是否被关闭php 迭代器 返回当前元素php 迭代器 返回当前元素的键php 迭代器 向前移动到下一个元素php 语言参考 生成器php 生成器 生成器语法php yaf config ini 检查迭代器是否有效php yaf config simple 检查迭代器是否有效
关注编程学问公众号
编程学问网 湘ICP备20001732号