What potential issues could arise from using multiple if statements in PHP code?

Using multiple if statements in PHP code can lead to nested conditions, making the code harder to read and maintain. One way to solve this issue is by using switch statements instead, which can make the code more organized and easier to follow.

// Example of using switch statements instead of multiple if statements
$color = "red";

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.";
}