Why doesn't work this?
$i = "08"; switch ($i) { case 01: print ("01"); break; case 08: print ("08"); break; }
every number from 01 till 07 works but with 08 it doesn't. It works with 8. does anybody know the problem?
THX
Because 00 to 07 belongs to <B>OCTAL</B> system. If you are not using octal numbers, try to:
a) Reference by string:
case '01':
b) Use a decimal number
case 1:
fLIPIS