PageArray/WireArray


Getting Items

$a->shift()

Introduced in Version 2.0

Description

Remove (shift) the first $item from the WireArray and return it.

Get the first skyscraper while removing it from the $skyscrapers list. 

$skyscraper = $skyscrapers->shift();

After execution of the above code, $skyscrapers will have one less item. 

Post Comment