Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Indexed Array

An indexed array is an array whose keys are only integers. The keys may be explicit or implicit.

An array with a string index is an associative array.

<?php

$associative = [10 => 'a', 'b'];

echo $associative[10]; // a
echo $associative[0]; // b

?>

Documentation

See Also