Advertisements
Advertisements
प्रश्न
Write the Syntax of Switch statement.
संक्षेप में उत्तर
उत्तर
switch (n) {
case label1:
code to be executed if n=label1;
break;
case label2:
code to be executed if n=label2;
break;
case label3:
code to be executed if n=label3;
break;
...
default:
code to be executed if n is different from all labels;
}
shaalaa.com
If elseif else Statement in PHP
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
APPEARS IN
संबंधित प्रश्न
Define if...elseif....else Statement in PHP.
Write the usage of Switch Statement in PHP.
Write is the purpose of if elseif else statement.
Write Short notes on Switch statement.
Discuss in detail about Switch statement with an example.
Explain the if elseif else statement. With suitable example.