Question: 5. The php codes display the TV channel using If...Else statements as follows: (tvchannel.php) TV channel 1106 104 1114 Others TV program to display 'WandaVision

5. The php codes display the TV channel using If...Else statements as follows: (tvchannel.php) TV channel 1106 104 1114 Others TV program to display 'WandaVision" The Falcon and The Winter Soldier" 'Loki" What if?
Program : WandaVision"; elseif ($tv-"TV104") echo "TV channel : $tv -> Program : The Falcon and The Winter Soldier"; elseif ($tv - TV114") echo "TV channel : $tv => Program: Loki"; else echo "TV channel: Not my favourite program"; ! ?> Try this => Replace the If...else statement to switch...case statement
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
