What potential issue could arise when using multiple IF statements in PHP to check user input?

Using multiple IF statements to check user input can lead to nested IF statements, making the code harder to read and maintain. To solve this issue, you can use a switch statement instead, which provides a cleaner and more organized way to handle multiple conditions.

$userInput = "example";

switch ($userInput) {
    case "example":
        echo "User input is 'example'";
        break;
    case "anotherExample":
        echo "User input is 'anotherExample'";
        break;
    default:
        echo "Invalid user input";
}