What are the ways to define a constant in PHP?

PHP constants are name or identifier that can not be changed during the execution of the script. PHP constants are defined in two ways:

  • Using define() function
  • Using const() function