Advertisements
Advertisements
Question
Write the usage of Switch Statement in PHP.
Short Note
Solution
- The switch statement is used to perform different actions based on different conditions.
- Switch statements work the same as if statementsbut they can check for multiple values at a time.
shaalaa.com
If elseif else Statement in PHP
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
Define if...elseif....else Statement in PHP.
Write the Syntax of Switch statement.
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.