What best practices should be followed when using if-else statements in PHP to ensure code readability and functionality?

When using if-else statements in PHP, it is important to follow best practices to ensure code readability and functionality. One key practice is to use proper indentation and formatting to make the code easier to read and understand. Additionally, it is recommended to use meaningful variable names and comments to explain the logic behind the conditions. Lastly, avoid nesting if-else statements too deeply to prevent confusion and improve code maintainability.

// Example of using if-else statements with proper formatting and comments

$number = 10;

if ($number > 0) {
    // Condition: Number is positive
    echo "The number is positive.";
} else {
    // Condition: Number is not positive
    echo "The number is not positive.";
}