Conditions

Example 1 of If/Else Conditions:
2 is smaller than 3.
Example 2 of If/Else Conditions:
The number of apples = the number of oranges.
Example of PHP Case (Switch):
y is greater than x

Definition

Conditions are used to incorporate logic in PHP. This results in a TRUE, FALSE, NULL, or ISSET value. NULL is used to represent 0 or DNE (does not exist). Conditions are extremely useful for programming as they allow checks to be formed. ISSET is used to check if a variable is a set and cannot be NULL.