Exam 200-710 All QuestionsBrowse all questions from this exam
Question 36

Are PHP constants case-sensitive?

    Correct Answer: A

    PHP constants are case-sensitive by default. However, using the define() function, it is possible to create case-insensitive constants by passing a third parameter set to true. This feature has been deprecated as of PHP 7.3, but it is still accurate to say that they can be case-insensitive up to that version.

Discussion
randerccfOption: A

Response A is the correct. https://www.php.net/manual/en/function.define

pietrantonioOption: A

A is correct, by default are case-sensitive, but with define you can create case-insensitive constants passing a third param

KirillSOption: C

Case insensitive in define() is deprecated since 7.3. Maybe that's why the correct answer is C. For PHP <7.3 the correct answer is A.

[Removed]Option: A

Correct answer is A

youidirOption: B

response B is correct