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
Loading...
Related Quiz
- You have a PHP script and you need to access the information stored in a cookie. How would you do this?
- Which of the following are true about the default keyword in a PHP switch statement?
- The PHP files should be saved with a ______ extension for the server to parse them.
- Multi-line comments in PHP start with ______ and end with ______.
- The main purpose of a destructor in a PHP class is to perform cleanup tasks before the object is destroyed.