$deptName[0] = "Womens";
$deptName[1] = "Mens";
$deptName[2] = "Girls";
$deptName[3] = "Boys";
or
$deptName = array("Womens","Mens","Girls","Boys");
I want you to set up an array for the days of the week using the first methods.
Use a for loop to display all of the days.
Now set up the array for the days of the week using the second method.
Now use a foreach to display all of the days.
$rainbow = array(0=>"red",1=>"orange",2=>"yellow",3=>"green",4=>"blue",5=>"purple");
Set up this structure for the days of the week and then use the foreach to display.
$fareArray = array(
                   array (851.00, 949.50, 659.96, 499.00, 498.99),
                   array (929.00, 1012.75, 638.99, 525.00, 550.00),
                   array (799.99, 915.89, 498.99, 425.00, 512.00)
             );
This is a two dimension array.
Set up a two dimension array for miles between cities. You should have three cities you start from and four cities you go to. Make up the miles between the cities.
Now put out the distance between the second city and the third city.
Write a for loop to show all of the distances.