91-9990449935 0120-4256464 |
PHP If ElsePHP if else statement is used to test condition. There are various ways to use if statement in PHP.
PHP If StatementPHP if statement is executed if condition is true. SyntaxFlowchart ![]() Example Output:
12 is less than 100
PHP If-else StatementPHP if-else statement is executed whether condition is true or false. SyntaxFlowchart ![]() Example Output:
12 is even number
Next TopicPHP Switch
|