Conditions
Conditions are statements used to perform actions within PHP code. Condition statements use logic and comparison operators to make sense of statements. There are multiple different types of conditions and many different operators that can be used in condition statements. Below are a few examples.
This is an example of an if...else condition statement:
Today is Sunday.
This is an example of an if...elseif...else condition statement:
Today is Sunday.
This is an example of a switch/case condition statement:
Today is Sunday.