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
Add your answer
Loading...

Leave a comment

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