Example 1 of if/else condition
You selected age as 18 years
Example of PHP case
You selected age as 18 years.
Example 2 of if/else condition
Your grade is an A.
In PHP, the conditions are used in different actions based on the performance of the conditions. The if/else conditions are block of code that preform a specified condition is true and another block that is false.