What best practices should be followed when using if-else statements in PHP code?

When using if-else statements in PHP code, it is important to follow best practices to ensure readability and maintainability. This includes using clear and concise conditions, avoiding nested if-else statements when possible, and using proper indentation for better code structure.

// Example of using if-else statement with best practices
$age = 25;

if ($age < 18) {
    echo "You are a minor.";
} else {
    echo "You are an adult.";
}