store upcoming values in array in php code example
Example 1: php arrays
$nums = [1, 2, 3, 4, 5];
Example 2: PHP Arrays
<?php
$cars = array("Volvo", "BMW", "Toyota");
echo "I like " . $cars[0] . ", " . $cars[1] . " and " . $cars[2] . ".";
?>
$nums = [1, 2, 3, 4, 5];
<?php
$cars = array("Volvo", "BMW", "Toyota");
echo "I like " . $cars[0] . ", " . $cars[1] . " and " . $cars[2] . ".";
?>