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

Leave a comment

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