PHP constants are case-_________.

  • Insensitive
  • Sensitive
  • Dependent
  • Independent
PHP constants are case-sensitive. It means that constant names are treated as case-sensitive identifiers. For example, if a constant is defined as "CONSTANT_NAME", you cannot access it as "constant_name" or "CoNsTaNt_NaMe". The constant name must match exactly with its defined case. This behavior ensures that constants are accessed consistently based on their exact names. 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 *