PHP Switch Statement
Switch is another conditional statement execute depending on each other condition.Syntex of switch satement is given below--
Syntex of Switch.....statement
switch(variable)
{
case conditionvalue :
execute if case codition is trure ;
break;
case conditionvalue2 :
execute if case codition is trure ;
break;
case conditionvalue3 :
execute if case codition is trure ;
break;
... defoalt :
Otherwise it will be executed ;
}
We have given example of this condition below within one page using php and html. This is just like a mini calculation project. Where we can do add, subtraction, multiply and division
Example