What is the correct syntax for the if statement in PHP?

The correct syntax for the if statement in PHP includes the keyword "if" followed by parentheses containing the condition to be evaluated, and then a block of code enclosed in curly braces that will be executed if the condition is true. It is important to ensure that the condition is properly formatted and that the code block is correctly enclosed within the curly braces.

// Example of correct if statement syntax in PHP
$number = 10;

if ($number > 5) {
    echo "The number is greater than 5.";
}