What is the alternative syntax for an IF statement in PHP?

The alternative syntax for an IF statement in PHP is using the colon (:) and endif keyword instead of curly braces ({}) and endif keyword. This can make the code more readable and maintainable, especially when dealing with nested IF statements.

// Alternative syntax for IF statement
if ($condition):
    // Code to execute if condition is true
elseif ($another_condition):
    // Code to execute if another condition is true
else:
    // Code to execute if none of the conditions are true
endif;