Contact Us || Privacy Policy || About Us |
|
If...Else Statements in PHPIf....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. Syntax ![]() Example :-Output 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. Syntax :- Example :-Output Condition is false 3) if...elseif...else Statement in PHPif....elseif...else statement executes different codes, more than two conditions. Multiple Statement, executes one Condition. Syntax Example :-Output Have a nice weekend! |