0
Switch PHP
Why this: $char a = 'a'; switch ($char) { case 'a': echo 'b', case 'b': echo 'a' } will output 'ba' can someone explain it to me? switch is returning echo or what
2 Answers
+ 1
You used a comma ',' instead of semi-colon ';' after the first echo statement
+ 1
ah thanks