In PHP, constants are defined using the ______ function.

  • define()
  • var()
  • constant()
  • assign()
In PHP, constants are defined using the define() function. The define() function takes two arguments: the constant name (identifier) and its value. It sets the value for the constant and defines it for the rest of the script execution. The defined constant can be accessed using its name throughout the script. Learn more: https://www.php.net/manual/en/function.define.php
Add your answer
Loading...

Leave a comment

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