PHP Test online


18. How does the identity operator === compare two values?


Вариант ответа 1 - A) It converts them to a common compatible data type and then compares the resulting values

Вариант ответа 2 - B) It returns True only if they are both of the same type and value

Вариант ответа 3 - C) If the two values are strings, it performs a lexical comparison

Вариант ответа 4 - D) It bases its comparison on the C strcmp function exclusively

Вариант ответа 5 - E) It converts both values to strings and compares them


Comments: The identity operator works by first comparing the type of both its operands, and then their values. If either differ, it returns False.

Comments

User nameComment
User name
Comment text
Code