编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 聚合式迭代器
  • 数组式访问 »
  • PHP Manual
  • 聚合式迭代器
  • 获取一个外部迭代器

IteratorAggregate::getIterator

(PHP 5, PHP 7)

IteratorAggregate::getIterator — 获取一个外部迭代器

说明

abstract public IteratorAggregate::getIterator ( void ) : Traversable

返回一个外部迭代器。

参数

此函数没有参数。

返回值

实现了 Iterator 或 Traversable 接口的类的一个实例。

错误/异常

失败时抛出 Exception。

相关文章
php apciterator 构造一个 apciterator 迭代器对象php 迭代器 the cachingiterator classphp 迭代器 the globiterator classphp 预定义接口 iteratoraggregate(聚合式迭代器)接口php 迭代器 the norewinditerator classphp 迭代器 the recursiveiteratoriterator classphp 迭代器 the recursiveregexiterator classphp 迭代器 the recursivetreeiterator classphp 迭代器 the regexiterator classphp 范例 xml 外部实体例程php 程序执行函数 执行一个外部程序php 过滤器函数 获取一系列外部变量,并且可以通过过滤器处理它们php spl 函数 计算迭代器中元素的个数php spl 函数 将迭代器中的元素拷贝到数组php 迭代器 返回当前元素php 迭代器 返回当前元素的键php 迭代器 向前移动到下一个元素php 聚合式迭代器 获取一个外部迭代器php yaf config ini 检查迭代器是否有效php yaf config simple 检查迭代器是否有效
关注编程学问公众号
编程学问网 湘ICP备20001732号