what can you use to extend an if statement to execute a statement in case the expression in the if statement is evaluated to FALSE (Choose two)?

In PHP, what can you use to extend an if statement to execute a statement in case the expression
in the if statement is evaluated to FALSE (Choose two)?

In PHP, what can you use to extend an if statement to execute a statement in case the expression
in the if statement is evaluated to FALSE (Choose two)?

A.
else

B.
elseif

C.
ifelse

D.
or

E.
doif

F.
doelse

Explanation:

Often you’d want to execute a statement if a certain condition is met, and a different statement if
the condition is not met. This is what else is for. else extends an if statement to execute a
statement in case the expression in the if statement evaluates to FALSE. elseif , as its name
suggests, is a combination of if and else. Like else, it extends an if statement to execute a different
statement in case the original if expression evaluates to FALSE. However, unlike else, it will
execute that alternative expression only if the elseif conditional expression evaluates to TRUE.



Leave a Reply 0

Your email address will not be published. Required fields are marked *