elibraryportal Logo

Switch....Case Statements in PHP.

switch statement are used to execute one statement from multiple conditions. It like PHP if-else-if statement.

Syntax

Switch Case Statement

Example

Output

number is equal to 20
Next Topic