Ok, as I mentioned in my original message, I am well aware of just using the open brackets to add to an array.
For string indexed arrays (which I am using), I thought it was just a matter if using a new key in the brackets to add to the original array. This is not working - hence the wierdness.
I did lie in my original post though, I am not using PHP4, I'm using 3.0.16 - so array_push is out of the question.
Thanks,
Dennis
Sammy wrote:
Dennis,
try:
$array[] = $add_this_variable;
if you are using php 4, check out array_push
$array = array ("joe", "Jim");
$array = array_push($array, "Phil" );
//now..
$array[0] = "joe"
$array[1] = "Jim"
$array[2] = "Phil"