Strangely enough I haven't found any question or answers to my problem (should be quite basic), so I will ask it here.
in PHP If I have an array named myArray that I don't know the contents of, then I can't do this:
$myArray[20] = "some string";
because entry 20 may already exist.
So is there a way to automatically insert a string as the last entry, so nothing is overwritten in the array?