$result= $valuel ???

Consider the following code:

$result= $valuel ??? $value2;

Which operator needs to be used instead of??? so that $result equals $valuel if $valuel evaluates to true, and equals $value2 otherwise? Just state the operator as it would be required in the code.

Answer: ?:

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments