Array is a special kind of variable which is able to store more than one variable simultaneously.
<?php
$data=array("30","50","55");
echo $data[0]."<br>";
echo $data[1]."<br>";
echo $data[2];
?>
30
50
55
3
<?php
$data=array();
for($i=0;$i<=10;$i++)
{
$data[$i]=$i;
}
foreach($data as $element)
{
echo "$element";
}
?>
12345678910