What's the difference between referring to an array as "[FONT=courier new]array[/font]" and as "[FONT=courier new]array[][/font]"? For example, I have the following code:
foreach ($array as $row) { //For each row in the array
if (count($row)== 4) { //Check that each row has 4 values
$newarray[] = $row; //Yes, transfer row to new array
}
I find that:
[FONT=courier new]$newarray[] = $row;[/font] // this works, but
[FONT=courier new]$newarray = $row;[/font] // (without the square brackets) does not.
Regards,
Ian Tresman,
Derby UK