+ 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
2 ответов
+ 3
https://www.sololearn.com/Course/PHP/?ref=app
Conveniently, there's a course that should help you with all of that task.
+ 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 ]
}



