Advertisements
Advertisements
Question
Write is the purpose of if elseif else statement.
Answer in Brief
Solution
- A user can decide among multiple options.
- The if statements are executed from the top I down.
- As soon as one of the conditions controlling the if is true, the statement associated with that if is executed, and the rest of the ladder is bypassed.
- If none of the conditions is true, then the final else statement will be executed.
- More than one statement can execute the condition based on user needs.
shaalaa.com
If elseif else Statement in PHP
Is there an error in this question or solution?