PageArray/WireArray


Getting Items

$a->eq($n)

Introduced in Version 2.0

Description

Returns the single item at the given zero-based index, or NULL if it doesn't exist.

$skyscraper = $skyscrapers->eq(1); 

The above code would return the second item in the $skyscrapers array. If there was no second item in it, then it would return NULL. 

Post Comment