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

IteratorAggregate::getIterator

(PHP 5, PHP 7)

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

说明

abstract public IteratorAggregate::getIterator ( void ) : Traversable

返回一个外部迭代器。

参数

此函数没有参数。

返回值

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

错误/异常

失败时抛出 Exception。

相关文章
php apciterator 获取迭代器的键php apciterator 倒退迭代器php 迭代器 the appenditerator classphp 迭代器 the callbackfilteriterator classphp 迭代器 the directoryiterator classphp 迭代器 the emptyiterator classphp 预定义接口 iterator(迭代器)接口php 预定义接口 iteratoraggregate(聚合式迭代器)接口php 迭代器 the iteratoriterator classphp 迭代器 the limititerator classphp 迭代器 the multipleiterator classphp 迭代器 the parentiterator classphp 迭代器 the recursivearrayiterator classphp 数组 函数 用回调函数迭代地将数组简化为单一的值php fann 函数 使用一个输入集和一个期望的输出集来迭代训练一次。php 程序执行函数 执行外部程序,并且显示输出php 迭代器 返回到迭代器的第一个元素php 迭代器 检查当前位置是否有效php 聚合式迭代器 获取一个外部迭代器php reflectionclass 检查是否可迭代(iterateable)
关注编程学问公众号
编程学问网 湘ICP备20001732号