phpday 2027 - Call for Papers

IteratorAggregate::getIterator

(PHP 5, PHP 7, PHP 8)

IteratorAggregate::getIterator — 外部イテレータ または traversable を取得する

説明

public function IteratorAggregate::getIterator(): Traversable

外部イテレータ または traversable を返します。

パラメータ

この関数にはパラメータはありません。

戻り値

Iterator あるいは Traversable を実装したオブジェクトのインスタンスを返します。

エラー / 例外

失敗した場合は Exception をスローします。

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top