Snippets tagged “switch-case”
2 snippets use this tag.
- How to Use "or" in Switch Case in PHPPHP
In this snippet, you will figure out how to use the "or" operator in a switch case in PHP. Read on, check out and try the examples.
- Using two values for one switch case statementJava
To use two values in a switch case statement in Java, you can use the case label for each value, or you can use the case label with a range of values.