PageArray/WireArray


Getting Items

$a->index($n)

Introduced in Version 2.0

Description

Returns a new WireArray containing the item at the given zero-based index.

$skyscrapers = $skyscrapers->index(0); 

The above code would reduce $skyscrapers to only contain the first item. 

Post Comment