Documentation

ArrayInterface extends ArrayAccess, Countable, IteratorAggregate, Serializable

`ArrayInterface` provides traversable array functionality to data types.

Tags
template

T

extends

ArrayAccess<array-key, T>

extends

IteratorAggregate<array-key, T>

Table of Contents

clear()  : void
Removes all items from this array.
isEmpty()  : bool
Returns `true` if this array is empty.
toArray()  : array<array-key, T>
Returns a native PHP array representation of this array object.

Methods

clear()

Removes all items from this array.

public clear() : void
Return values
void

isEmpty()

Returns `true` if this array is empty.

public isEmpty() : bool
Return values
bool

toArray()

Returns a native PHP array representation of this array object.

public toArray() : array<array-key, T>
Return values
array<array-key, T>

Search results