PHP case Keyword

PHP Keywords : Use case to run some code when a variable has a specified value

Definition and Usage

The case keyword is used to jump to a line of code when an expression has a specific value in a switch conditional.

Related Pages

The switch keyword.

Read more about the switch conditional in our PHP switch Statement Tutorial.

❮ PHP Keywords