How can you use the else statement in PHP to handle cases where a certain condition is not met?

When a certain condition is not met in PHP, you can use the else statement to handle the alternative case. This allows you to specify a block of code that will be executed if the initial condition evaluates to false. By using the else statement, you can provide a fallback or default behavior for situations where the primary condition is not satisfied.

$number = 10;

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