What are the ways to define a constant in PHP?

Asked: Apr 15, 2023

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
Asked by brijesh

Answers (0)

No answers yet. Be the first to answer!