Control structures will give us the tools we need to control the flow and logic of our PHP code. All programming languages have control structures. Some common control structures in PHP are: if, if/else, for, foreach, while, and do/while.

For now let's take a look at an if statement.