Files
developer-roadmap/roadmaps/php/content/switch@bgJ9-m6Fiu3VCc-NZlbpn.md
T

424 B

switch

The switch statement compares a single expression against multiple possible values using case labels. PHP uses loose comparison (==) in switch cases. Each case should end with break to prevent fall-through into the next case. default handles any value not matched by a case.

Visit the following resources to learn more: