What is the issue with the switch-case statement in the PHP script provided?

The issue with the switch-case statement in the provided PHP script is that the case statements are missing a break statement at the end of each case block. Without the break statement, the switch statement will continue executing the code in subsequent case blocks, leading to unexpected behavior. To fix this issue, add a break statement at the end of each case block to ensure that only the code in the matched case block is executed.

// Fix for the switch-case statement
switch ($color) {
    case 'red':
        echo "You chose red";
        break;
    case 'blue':
        echo "You chose blue";
        break;
    case 'green':
        echo "You chose green";
        break;
    default:
        echo "Invalid color choice";
}