<?php
$arr =
array(A, B, C, D
);
// this is an example array
// this loops through an array printing out each value
foreach ($arr as $value) {
print $value .
', ';
// prints out A, B, C, D,
}
// this references an array and prints out a selected value
print $arr[0];
// prints the first value in the array A
print $arr[2];
// prints the third value in the array C
?>