Advertisements
Advertisements
Question
Write Short notes on Switch statement.
Answer in Brief
Solution
- The switch statement is used to perform different actions based on different conditions.
- It tests for equality only.
- It uses default value when all the case values are not matched.
- It can have multiple ease values.
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 usage of Switch Statement in PHP.
Write the Syntax of Switch statement.
Write is the purpose of if elseif else statement.
Discuss in detail about Switch statement with an example.
Explain the if elseif else statement. With suitable example.