interface ArrayInterface implements IteratorAggregate, ArrayAccess, Serializable, Countable (View source)

Implementing this interface allows an object to be the target of the "for-each loop" statement

Methods

void
clear()

Remove all the elements from this array object

toArray()

Returns a native PHP array containing all of the elements in this array object

bool
isEmpty()

Returns true if this array object contains no elements

Details

void clear()

Remove all the elements from this array object

Return Value

void

toArray()

Returns a native PHP array containing all of the elements in this array object

bool isEmpty()

Returns true if this array object contains no elements

Return Value

bool