This site is mobile accessible. Press the "Tap Here" button to use a different font-size.


Smartphone icons created by Freepik - Flaticon

PHP Arrays

Index Number: part 1

array(4) {
  [0]=>
  string(5) "Volvo"
  [1]=>
  string(3) "BMW"
  [2]=>
  string(6) "Toyota"
  [3]=>
  string(17) "Ford"
}
<?php
$cars[0] = "Volvo";
$cars[1] = "BMW";
$cars[2] = "Toyota";

array_push($cars, "Ford");
var_dump($cars);
?>

Note: the character length of item [3] should be 4. I added <mark> and </mark> to the code to highlight item [3]. This increased the character length of item [3] to 17.