What potential syntax error can occur when using if-else constructs in PHP?

When using if-else constructs in PHP, a potential syntax error can occur if you forget to include the opening and closing curly braces for the code blocks within the if and else statements. This can lead to unexpected behavior or errors in your code. To solve this issue, always remember to enclose the code blocks within if and else statements in curly braces to ensure proper execution of the conditional logic.

// Incorrect way without curly braces
if ($condition)
    echo "Condition is true";
else
    echo "Condition is false";

// Correct way with curly braces
if ($condition) {
    echo "Condition is true";
} else {
    echo "Condition is false";
}