Conditions and Branches
The control structures in PHP are similar in syntax to those in other high-level programming languages.
Conditionals add control to scripts and permit branching so that different statements are executed depending on whether expressions are true or false. There are two branching statements in PHP: if, with the optional else clause, and switch, usually with two or more case clauses.