Course lesson
Use a PHP switch statement for advanced conditional logic
When you find yourself repeating or writing similar conditional logic in your if statements, a better option may be a switch statement.
- Duration
- 4 min
- Access
- Included
- Transcript
- Retained from source evidence
When you find yourself repeating or writing similar conditional logic in your if statements, a better option may be a switch statement.