Array is: "; print_r($arr); echo ""; // Select individual parts by number. Start at zero. $arr[1] = "Mike"; $arr[5] = 3.3; print "
Now it is $arr[0] $arr[1] $arr[2] $arr[3] $arr[4] $arr[5]
"; // Array subscripts need not be numbers. $z = array("snake" => "oil", "tv" => "wasteland", "titanic" => "sank"); $z['turtle'] = 'shell'; echo "
Keyed array: "; print_r($z); echo "
"; ?>