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

IteratorAggregate::getIterator

(PHP 5, PHP 7)

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

说明

abstract public IteratorAggregate::getIterator ( void ) : Traversable

返回一个外部迭代器。

参数

此函数没有参数。

返回值

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

错误/异常

失败时抛出 Exception。

相关文章
php 迭代器 the appenditerator classphp 迭代器 arrayiterator 类php 迭代器 the filesystemiterator classphp 迭代器 the filteriterator classphp 迭代器 the infiniteiterator classphp 预定义接口 iteratoraggregate(聚合式迭代器)接口php 迭代器 the iteratoriterator classphp 迭代器 the recursivearrayiterator classphp 迭代器 the recursivecachingiterator classphp 迭代器 the recursivecallbackfilteriterator classphp 迭代器 the recursivedirectoryiterator classphp 迭代器 the recursivefilteriterator classphp spl 函数 为迭代器中每个元素调用一个用户自定义函数php 程序执行函数 执行外部程序并且显示原始输出php xml 解析器函数 建立外部实体指向处理器php 生成器 重置迭代器php 生成器 检查迭代器是否被关闭php 聚合式迭代器 获取一个外部迭代器php reflectionclass 检查是否可迭代(iterateable)php spl 迭代器
关注编程学问公众号
编程学问网 湘ICP备20001732号