<?php
$friend[0] = "Justin";
$friend[1] = "Lloyd";
$friend[2] = "Alexa";
$friend[3] = "Devron";$age["Justin"] = 45;
$age["Lloyd"] = 32;
$age["Alexa"] = 26;
$age["Devron"] = 15;print "My friends names are " . $friend[0] . ", " . $friend[1] . ", " . $friend[2] . ", and " . $friend[3];
print "<p>";
print "Alexa is " . $age["Alexa"] . " years old";
?>
The first array ($friend) is arranged using integers as the key (the key is the information between the [brackets]) which is handy when using loops. The second array ($age) shows that you can also use a string (text) as the key. As demonstrated the values are called by print in the same way a regular variable would be.
The same principals apply to arrays as variables: they are CaSe SeNsitiVe, they are always defined with a $, and they must start with a letter or an underscore (not a number.)

