Conditional Statements

Like many programming languages, programming languages PHP has conditional statements that allow a program to take different actions based on specific conditions.

Like JavaScript, PHP has two main conditional statements, if and switch.

But before we can learn about conditional statements, we need to learn about operators.