How to use array in php

PHP
Array is one type of multiple data storage variable .  With the help of index we can store as many values as we can in the form of index in the array Variable.
Every time the array index value starts from 0 hence if we use the for loop then its index value will starts from 0.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>ARRAY Examples in PHP</title>
</head>
<body>
<?php

//We can define blank array by this way
$my_array = array();

//We can add values in array by this way
$my_array = array("A","B","C","D");

//if we want to check the array then array index always starts from 0
echo '<br>';
echo 'First Value of My Array is -'.$my_array[0];
echo '<br>';
echo 'Second Value of My Array is -'.$my_array[1];
echo '<br>';
echo 'Third Value of My Array is -'.$my_array[2];
echo '<br>';
echo 'Fourth Value of My Array is -'.$my_array[3];

?>
</body>
</html>
-->