PHP Basics

IteratorAggregateTrait

A generic implementation of the IteratorAggregate interface.

Tags
author

Sebastian Meyer sebastian.meyer@opencultureconsulting.com

template

TKey of int|string

template

TValue of mixed

template

TData of array<TKey, TValue>

Table of Contents

Properties

$data  : TData
Holds the iterable data.

Methods

getIterator()  : ArrayIterator<TKey, TValue>
Retrieve an external iterator.

Properties

Methods

getIterator()

Retrieve an external iterator.

public getIterator() : ArrayIterator<TKey, TValue>
APIYes
Return values
ArrayIterator<TKey, TValue>

New array iterator for data array


        
On this page

Search results