PHP If ,Else,Elseif and Switch statements are most important for checking condition of an expression in PHP code. If we need to check any condition then we can use if ,else or elseif and switch statement.Casue these are easy to use. PHP If ,Else,Elseif and swich statement can be used in following way: