Zend
200-710 · Question #223
What is a difference between the ?? operator and the ?: operator?
The correct answer is B. The ?: operator combines the ternary operator with isset(). See the full explanation below for the reasoning.
PHP Basics
Question
What is a difference between the ?? operator and the ?: operator?
Options
- AThe ?? operator combines the ternary operator with isset()
- BThe ?: operator combines the ternary operator with isset()
- CThe ?: operator is only supported by PHP 7 onwards
- D
How the community answered
(23 responses)- A4% (1)
- B74% (17)
- C9% (2)
- D13% (3)
Topics
#null coalescing#ternary operator#isset#operators
Community Discussion
No community discussion yet for this question.