If...Else Statements in PHP
If....else statements are used to perform different actions on different conditions.
There are following statements in PHP .
1) if Statement in PHP.
If the condition is true, then the statement is executed. If the condition is not true , then the statement is not executed then instead the program skip past it.
Have a nice Day!
2) if...else Statement in PHP.
if-else are two condition . first condition is true this is executed, and second is false.
Condition is false
3) if...elseif...else Statement in PHP
if....elseif...else statement executes different codes, more than two conditions.
Multiple Statement, executes one Condition.
Have a nice weekend!