A few simple questions regarding arrays.
1) how do i create an empty array?
2) I have a seeion variable, $piclist, this could be one value or an array of values. When i pick up the list in the do_process script I have a line:
$piclist = $_SESSION['piclist']
When the session piclist is an array all is fine, when it contains only one element I get an error telling me the array operator cannot be applied to strings.
What is going wrong? I've tried everything I can think of but I still can't get it to work.
1) how do i create an empty array?
2) I have a seeion variable, $piclist, this could be one value or an array of values. When i pick up the list in the do_process script I have a line:
$piclist = $_SESSION['piclist']
When the session piclist is an array all is fine, when it contains only one element I get an error telling me the array operator cannot be applied to strings.
What is going wrong? I've tried everything I can think of but I still can't get it to work.