Exam 200-710 All QuestionsBrowse all questions from this exam
Question 32

What is a difference between the ?? operator and the ?: operator?

    Correct Answer: A

    The ?? operator, known as the null coalescing operator, combines the ternary operator with the isset() function. It returns the first operand if it is set and not null; otherwise, it returns the second operand. On the other hand, the ?: operator is a shorthand for the ternary operator that does not include the isset() functionality.

Discussion
PaulShiOption: A

That is false. https://www.tutorialspoint.com/php7/php7_coalescing_operator.htm The real answer is A