numeric array - how to create and use numeric array in php

numeric array - how to create and use numeric array in php


numericarray.php
<!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=utf-8" />
<title>numeric array - how to create and use numeric array in php</title>
</head>

<body>
    <h2 style="color:DodgerBlue; font-style:italic">php array example: using numeric array</h2>
    <hr width="400" align="left" color="CornFlowerBlue" />
    <br />

<?php 
 $Color[0]="Crimson";
 $Color[1]="RosyBrown";
 $Color[2]="MistyRose";
 $Color[3]="Olive";
 $Color[4]="OliveDrab";
 $Color[5]="Green";

 echo "<div style='height:50px;width:350px;Background-color:$Color[0]'>";
 echo "</div>";

 echo "<div style='height:50px;width:350px;Background-color:$Color[2]'>";
 echo "</div>";

 echo "<div style='height:50px;width:350px;Background-color:$Color[5]'>";
 echo "</div>";

?>

</body>
</html>