Hello,
Can someone please explain me, what's the difference between those two code samples?
switch($id) {
case 1 OR 2 OR 3:
echo("Test");
break;
}
switch($id) {
case 1:
case 2:
case 3:
echo("Test");
break;
}
Both code snippets produce different results.
Thanks,