:::

8. Array

Each item in an array is numbered starting from 0. For example, when we create an array:

<?php
$myArray = array("do", "re", "mi");
?>

Therefore, we can access a particular item of the array using its position, like this:

<?php
$myArray = array("do", "re", "mi");

echo $myArray[0]
// outputs "do"
?>

:::

語系選擇