A control structure is a block of code that decides the execution path of a program depending on the value of the set condition. Let's now look at some of the control structures that PHP supports.
if statement - executes some code if one condition is true. if...else statement - executes some code if a condition is true and another code if that condition is false. if... elseif...else statement - executes different codes for more than two conditions.