Zend
200-530 · Question #505
In which of the following ways does the identity operator === compare two values?
The correct answer is A. It evaluates to true only if the operands are of the same data type and have the same value. See the full explanation below for the reasoning.
Question
In which of the following ways does the identity operator === compare two values?
Options
- AIt evaluates to true only if the operands are of the same data type and have the same value.
- BIt evaluates to true if the two operands are equivalent.
- CIf the two values are strings, it performs a lexical comparison.
- DIt is an alias of strcmp() function.
How the community answered
(42 responses)- A81% (34)
- B5% (2)
- C12% (5)
- D2% (1)
Community Discussion
No community discussion yet for this question.