SWITCH CASE

1 of
Published on Video
Go to video
Download PDF version
Download PDF version
Embed video
Share video
Ask about this video

Page 1 (0s)

[Virtual Presenter] SWITCH CASE. SWITCH CASE.

Page 2 (1s)

[Virtual Presenter] Presented by L.Chitra. Presented by L.Chitra.

Page 3 (2s)

[Virtual Presenter] Introduction In PHP,a Switch statement is used to perform different actions based on the value of a given expression. It’s a way to simplify a series of if-elseif-else statements when you need to make decisions based on a single value..

Page 4 (8s)

[Virtual Presenter] Syntax Switch (expression). Syntax.

Page 5 (32s)

Example. $day = “Wednesday” switch ($day) In this example, since the value of $day is “Wednesday,” it will execute the code in the second case block, and you’ll see “It’s hump day!” printed..

Page 6 (40s)

[Audio] Thank you. Thank you.