编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 迭代器 the cachingiterator classphp 迭代器 the norewinditerator classphp 迭代器 the recursiveiteratoriterator classphp 迭代器 the recursiveregexiterator classphp 迭代器 the recursivetreeiterator classphp 迭代器 the regexiterator classphp fann 函数 返回衰退值,用于在 quickprop 训练迭代时衰减权重php spl 函数 为迭代器中每个元素调用一个用户自定义函数php spl 函数 计算迭代器中元素的个数php spl 函数 将迭代器中的元素拷贝到数组php 生成器 重置迭代器php 生成器 检查迭代器是否被关闭php 生成器 序列化回调php 生成器 comparing generators with iterator objectsphp 生成器 生成器总览php 语言参考 生成器php 生成器 生成器语法php yaf config ini 检查迭代器是否有效php yaf config simple 检查迭代器是否有效
关注编程学问公众号
编程学问网 湘ICP备20001732号