<?php $foo[] = "Value 1"; /* Assigned key 0 */ $foo[] = "Value 2"; /* Assigned key 1 */ $foo[5] = "Value 3"; /* Assigned key 5 */ $foo[] = "Value 4"; /* Assigned key 6 */ ?>