MultipleIterator::attachIterator

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

MultipleIterator::attachIteratorAttaches iterator information

說明

public MultipleIterator::attachIterator(Iterator $iterator, string|int|null $info = null): void

Attaches iterator information.

警告

本函數(shù)還未編寫文檔,僅有參數(shù)列表。

參數(shù)

iterator

The new iterator to attach.

info

The associative information for the Iterator, which must be an int, a string, or null.

返回值

Description...

錯(cuò)誤/異常

An IllegalValueException if the iterator parameter is invalid, or if info is already associated information.

參見