200-710 Exam QuestionsBrowse all questions from this exam

200-710 Exam - Question 36


Are PHP constants case-sensitive?

Show Answer
Correct Answer: AC

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

5 comments
Sign in to comment
randerccfOption: A
May 20, 2020

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

pietrantonioOption: A
Jun 10, 2020

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

youidirOption: B
Mar 4, 2020

response B is correct

[Removed]Option: A
Jun 21, 2020

Correct answer is A

KirillSOption: C
Apr 9, 2021

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.