Control Statements in PHP : Tutorial



Control Structures are noting but Control flows i.e. "order of flow of individual statements based of certain Conditions". In PHP we have the following Control flow Structures,

if statements
else statements
else-if statements
while loop
do-while loop
for loop
for-eachloop
break statements
switch
declare
return statements
require
include
require_once
include_once
goto statements

A PHP program is noting but number of statements under one file. A statement can be an assignment, a function call, a loop, a conditional statement or an empty statement.

We will see the above mentioned Statements and Conditions in detail from the next chapter,