What potential issue can arise if break statements are not used in a PHP switch statement?

If break statements are not used in a PHP switch statement, it can lead to "fall-through" behavior where multiple case blocks are executed even after a match is found. This can result in unexpected outcomes or errors in the code. To solve this issue, make sure to include break statements at the end of each case block to exit the switch statement after a match is found.

$fruit = "apple";

switch ($fruit) {
    case "apple":
        echo "It's an apple.";
        break;
    case "banana":
        echo "It's a banana.";
        break;
    case "orange":
        echo "It's an orange.";
        break;
    default:
        echo "Unknown fruit.";
}