mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-10-28 02:43:08 +08:00
Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
424 B
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: