There was an error while loading. Please reload this page.
Elements of an array-like value can be accessed using the [] operator and providing an index.
[]
array_like[index]
All indices start at zero, so in order to retrieve the first element, you use the zeroth index:
array_like[0]
Array-like values include:
List
Array
String
__access__
The resulting value will be the mutable value at the supplied index
Table of Contents