nerdexam
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)
  • A
    4% (1)
  • B
    74% (17)
  • C
    9% (2)
  • D
    13% (3)

Topics

#null coalescing#ternary operator#isset#operators

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice