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

Using multiple if statements can lead to code that is hard to read, maintain, and debug. It can also result in nested if statements that make the code more complex and error-prone. To improve readability and maintainability, consider using switch statements or refactoring the code to use a more structured approach like arrays or functions.

// Example of refactoring multiple if statements using a switch statement
$fruit = "apple";

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