Using Arrays
$chosen = $colour[2];
$fullname = $name['first'] . $name['middle'] . $name['last'];
A common thing to want is to read through a numeric array to find something. To do this, loop through the array until there are no more elements. Use the count function to find out how many elements there are. For example:
$max = count($arrayname);
for ($i=0; $i <= $max; $i++) {
$element = $arrayname[$i];
... do want you want with $element now
}
Next article: Date and Time