In other word, PHP if-else statement is used executed a block of code (present in the if block) only if the specified condition evaluates to true, otherwise another block of code (present in the else block) will be executed. Here is the general form to use if-else statement in PHP: