What are common syntax errors to look out for when using PHP, especially in switch statements?

One common syntax error to look out for when using PHP, especially in switch statements, is forgetting to include a break statement at the end of each case block. This can lead to unintended fall-through behavior where multiple case blocks are executed. To solve this issue, always remember to include a break statement at the end of each case block to ensure that only the intended block is executed.

$day = "Monday";

switch ($day) {
    case "Monday":
        echo "Today is Monday";
        break;
    case "Tuesday":
        echo "Today is Tuesday";
        break;
    default:
        echo "It is not Monday or Tuesday";
}