Which of the conditional statements is/are supported by PHP? 1. if statements 2. if-else statements 3. if-elseif statements 4. switch statements
A.Only 1
B.1, 2 and 4
C.2, 3 and 4
D.All of the mentioned.
Answers
Answered by
1
option please correct because all the mentioned statements are correct all the statements are conditional so they can be used for IF else as statement
Answered by
0
D.All of the mentioned is the correct option.
If statements, if-else statements, if-elseif statements and switch statements
are supported by PHP.
Explanation:
- Control statements are conditional statements that, if the condition is true, execute a block of statements.
- The conditional block's statement will not be executed until the condition is met.
- Conditional statements provided by PHP include if statements, if-else statements, if-elseif statements, and switch statements, which are all used to evaluate various conditions within a programme and take action based on whether the conditions evaluate to true or false.
#SPJ3
Similar questions