PHP If-else-if Statement With Example

if...elseif...else Statement

This statement specifies a new conditon to test, if the first condition is false

The if...elseif...else a special statement that is used to combine multiple if...else statements

Syntax:



Folowchart:

Example:



Result:

Have a nice day! 


Read Also: