Once a constant is defined in PHP, it ______ be changed during the execution of the script.
- Cannot
- Can
- Must
- May
Once a constant is defined in PHP, it cannot be changed during the execution of the script. Constants are intended to store fixed values that remain constant throughout the execution of the script. They are not meant to be modified or redefined once defined. Any attempt to change a constant's value will result in an error. This behavior ensures the integrity and consistency of the constant values throughout the script's execution. Learn more: https://www.php.net/manual/en/language.constants.php
Loading...
Related Quiz
- You have a PHP script and you need to access data sent via the GET method from a form. How would you do this using the $_GET superglobal?
- What are some differences between using PHP with MySQL versus other database systems?
- Which of the following are features of PHP?
- How can we automatically escape incoming data?
- What is the difference between the include and require statements in PHP?