A

Admin • 833K Points
Coach

Q. How do you define a constant in PHP?

  • (A) define('NAME', 'value')
  • (B) const NAME = 'value';
  • (C) constant NAME = 'value';
  • (D) Both define() and const
  • Correct Answer - Option(D)
  • Views: 21
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

Both define() and const can be used to declare constants.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.