PHP program to demonstrate the use of decision making control structures: a. if statement b. if else statement c. switch . | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

PHP program to demonstrate the use of decision making control structures: a. if statement b. if else statement c. switch .

how to use PHP

16th Nov 2022, 7:01 PM
Shalini dewangan
Shalini dewangan - avatar
2 Answers
+ 3
https://www.sololearn.com/Course/PHP/?ref=app Conveniently, there's a course that should help you with all of that task.
16th Nov 2022, 8:53 PM
Ausgrindtube
Ausgrindtube - avatar
+ 1
if (condition) { [ if condition passed or true then this block of code will excute. ] } else { [ if condition is false then this block will excute ] } Switch is bit tricky switch (n) { case 1: [ check if n is 1 ] break; case 2: [ check if n is 2 ] break; default: [ if no case is matched ] }
17th Nov 2022, 12:43 AM
Aditya Dhiman
Aditya Dhiman - avatar