What is the alternative syntax for if-else statements in PHP?

The alternative syntax for if-else statements in PHP is to use the colon (:) and endif/endelse keywords instead of curly braces ({ }). This syntax can make the code cleaner and more readable, especially when dealing with nested if-else statements.

// Using alternative syntax for if-else statements
if ($condition) :
    echo "Condition is true";
else :
    echo "Condition is false";
endif;