SWITCH CASE

Published on Slideshow
Static slideshow
Download PDF version
Download PDF version
Embed video
Share video
Ask about this video

Scene 1 (0s)

[Virtual Presenter] SWITCH CASE. SWITCH CASE.

Scene 2 (1s)

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

Scene 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..

Scene 4 (8s)

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

Scene 6 (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..

Scene 7 (40s)

[Audio] Thank you. Thank you.