If / Else Example

You passed the class.

Switch Case Example

Start of the week.

Explanation

Conditions allow PHP to make decisions based on true or false expressions. The if/else statement checks a condition and runs code depending on whether it evaluates to true or false. A switch statement compares one variable against multiple possible values and executes matching code blocks.