Stringy\Stringy::getIterator PHP Метод

getIterator() публичный метод

Returns a new ArrayIterator, thus implementing the IteratorAggregate interface. The ArrayIterator's constructor is passed an array of chars in the multibyte string. This enables the use of foreach with instances of Stringy\Stringy.
public getIterator ( ) : ArrayIterator
Результат ArrayIterator An iterator for the characters in the string
    public function getIterator()
    {
        return new ArrayIterator($this->chars());
    }