ArrayInterface
extends
ArrayAccess, Countable, IteratorAggregate, Serializable
in
`ArrayInterface` provides traversable array functionality to data types.
Table of Contents
- clear() : void
- Removes all items from this array.
- isEmpty() : bool
- Returns `true` if this array is empty.
- toArray() : array<string|int, mixed>
- 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<string|int, mixed>