Once a constant is set in PHP, it cannot be ______ or ______.
- Modified or redefined
- Accessed or printed
- Declared or assigned
- Deleted or removed
Once a constant is set in PHP, it cannot be modified or redefined during the script execution. Constants are intended to store fixed values that remain constant throughout the execution of the script. Once defined, their value cannot be changed. Any attempt to modify or redefine a constant will result in an error. This behavior ensures that constants maintain their fixed value and avoid accidental changes. Learn more: https://www.php.net/manual/en/language.constants.php
Loading...
Related Quiz
- Which cryptographic extension provides generation and verification of digital signatures?
- The $_GET superglobal in PHP is an associative array.
- What are superglobals in PHP?
- Is it possible to destroy a cookie?
- You have a PHP script and you need to call a user-defined function using a string variable. How would you do this?