What potential pitfalls can arise from not properly structuring if-else statements in PHP code?

Improperly structuring if-else statements in PHP code can lead to logical errors and unexpected behavior. To avoid this, make sure to properly nest if-else statements and use appropriate conditions to cover all possible scenarios.

// Example of properly structured if-else statements
$score = 85;

if ($score >= 90) {
    echo "A";
} elseif ($score >= 80) {
    echo "B";
} elseif ($score >= 70) {
    echo "C";
} else {
    echo "D";
}