200-710 Exam QuestionsBrowse all questions from this exam

200-710 Exam - Question 32


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

Show Answer
Correct Answer: AB

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

1 comment
Sign in to comment
PaulShiOption: A
Feb 21, 2021

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