@ is only associated with strings yes so it converts any array into a string format (like you would see if it was saved in a text file).
Did you try like:
PHP Code:
function onCreated() {
temp.a = {0, 1};
temp.b = {0, 1};
switch(temp.a) {
case temp.b:
echo("foo");
break;
}
}
Because you can only use {} for arrays in certain cases (like assignments and in "in" [some other things too]). I know you can't do like:
PHP Code:
if (array == {"a", "b", "c"})