Let's say I have a switch statement like this:
switch ($var)
{
case 'A':
$a = 1;
break;
case 'B':
$a = 1;
$b = 2;
break;
case 'C':
$a = 1;
$b = 2;
$c = 3;
break;
}
Is there a way that I can structure that switch statement to have the repeated $a = 1
and $b = 2
appear like once?