What are common pitfalls to avoid when using switch/case statements in PHP?

Common pitfalls to avoid when using switch/case statements in PHP include forgetting to include a default case, not using break statements after each case, and using switch/case for complex logic that could be better handled with if/else statements.

// Example of a switch/case statement with a default case and break statements

$color = "blue";

switch ($color) {
    case "red":
        echo "The color is red";
        break;
    case "blue":
        echo "The color is blue";
        break;
    case "green":
        echo "The color is green";
        break;
    default:
        echo "Unknown color";
}