What is allowed in the brackets of $item[]?
The code fragment above fails with
which confuses me. I'm not really expecting different behavior between what seems to me to be a string constant and a string variable set to the same value as the constant. I'm getting a sense of deja vu about this but obviously the lesson didn't stick so please be patient with me.
Thanks.
PHP:
print($item[dry martini]);
print($item["dry martini"]);
string ss = "dry martini";
print($item[ss]);
The code fragment above fails with
Bad item value: "ss" (temp.ash, line 4)
which confuses me. I'm not really expecting different behavior between what seems to me to be a string constant and a string variable set to the same value as the constant. I'm getting a sense of deja vu about this but obviously the lesson didn't stick so please be patient with me.
Thanks.