Arrays/slices
Defining a new array
[1, 2, 3]Appending elements to an array
[$someArray, 4]Removing elements from an array
[1, 2, 3].filter($this % 2 == 0)Accessing by index
$someArray[1]$someArray[len($someArray)-1]Accessing a range of items
Take the first 5 items of an array
Take the last 5 items of an array
Last updated