Conditions in PHP
Example One: if/else Condition
You are an adult.
Example Two: switch (case) Condition
Wednesday
Explanation
If/else checks conditions and executes code accordingly.
Switch compares a value against options and runs the matching case.