Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
yii
base
ArrayAccessTrait
getIterator
yii\base\ArrayAccessTrait::getIterator PHP Method
ArrayAccessTrait Trait Documentation
Datei anzeigen
Open project: yiisoft/yii2
getIterator()
public
method
This method is required by the SPL interface [[\IteratorAggregate]]. It will be implicitly called when you use
foreach
to traverse the collection.
public
getIterator
( ) :
ArrayIterator
return
ArrayIterator
an iterator for traversing the cookies in the collection.
public function getIterator() { return new \ArrayIterator($this->data); }
ArrayAccessTrait
count
getIterator
offsetExists
offsetGet
offsetSet
offsetUnset