View Single Post
  #7  
Old 08-17-2007, 01:08 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
@ 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.= {01};
  
temp.= {01};
  
  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"}) 
__________________
Do it with a DON!