PHP Case Statement
Posted: Wed Jan 18, 2006 5:48 pm
I've the following code, but somehow it doesn't seem to work. Could someone tells me what might be wrong?
Thanks...
But if I use the following then it works
Thanks...
Code: Select all
switch (label)
case ("label1" || "label2"):
$a = 3
breakCode: Select all
switch (label)
case "label1"
$a = 3;
break
case "label2"
$a = 3;
break