Now it is $arr[0] $arr[1] $arr[2] $arr[3] $arr[4] "; print "$arr[5] $arr[6]
"; // Array subscripts need not be numbers. $z = ["snake" => "oil", "tv" => "wasteland", "titanic" => "sank"]; $z['turtle'] = 'shell'; echo "Keyed array: "; print_r($z); echo "
"; // Arrays have some of the usual operations, but not as methods. // Usual PHP clunky. echo "Array is: "; print_r($arr); echo "
"; $x = array_pop($arr); array_push($arr,37,29,18,"fred"); echo "Array is now: "; print_r($arr); echo ', $x = ',$x; echo "
"; ?>