Once a constant is defined in PHP, can its value be changed later in the script?

  • Yes
  • No
  • Only within functions
  • Only within classes
In PHP, once a constant is defined, its value cannot be changed later in the script. Constants are intended to hold values that do not change during the script's execution.
Add your answer
Loading...

Leave a comment

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