In PHP, constant identifiers are always case-______.

  • Sensitive
  • Insensitive
  • Dependent
  • Independent
In PHP, constant identifiers are always case-insensitive. It means that you can access a constant using any case (uppercase or lowercase) regardless of how it was defined. For example, if a constant is defined as "CONSTANT_NAME", you can access it as "constant_name" or "CoNsTaNt_NaMe". This behavior ensures that constants can be used consistently regardless of the case sensitivity. Learn more: https://www.php.net/manual/en/language.constants.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *