rtcary wrote:If it is "empty", that is, none of the records were checked, echo MyArray, outputs "Array". Very strange, indeed.
Of course, when echoed, the string "Array" outputs "Array" as well .....
Use [man]var_dump[/man] to investigate exactly what is in the variable; [man]gettype[/man] to just see what type it is; [man]is_array[/man] to see if it is an array.
It is a variable that is obtained from a <form> using POST. Would that do something to MyArray?
It could, depending on the field names: each individual field of a submitted form is a string (that's all they contain, and that's all they are when they're submitted), and it's the name of the field that tells PHP if some of those strings are to be grouped together as an array when they're received.