class Collection extends ArrayObject

Methods

void
__construct(mixed $items = [])

Create a new collection.

first()

Return the first item from the collection.

last()

Return the last item from the collection.

string
__toString()

Return a JSON representation of the collection.

string
dump()

Return a JSON pretty version of the collection.

Details

at line 19
void __construct(mixed $items = [])

Create a new collection.

Parameters

mixed $items

Return Value

void

at line 27
first()

Return the first item from the collection.

at line 35
last()

Return the last item from the collection.

at line 46
string __toString()

Return a JSON representation of the collection.

Return Value

string

at line 64
string dump()

Return a JSON pretty version of the collection.

Return Value

string