PHP Indexed Arrays
In indexed arrays each item has an index number.
By default, the first item has index 0, the second item has item 1, etc.
Example
Create and display an indexed array:
$cars = array("Volvo", "BMW", "Toyota");
var_dump($cars);
In indexed arrays each item has an index number.
By default, the first item has index 0, the second item has item 1, etc.
Create and display an indexed array:
$cars = array("Volvo", "BMW", "Toyota");
var_dump($cars);