ArrayInterface
extends
ArrayAccess, Countable, IteratorAggregate, Serializable
in
`ArrayInterface` provides traversable array functionality to data types.
Tags
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>