A

Admin • 833K Points
Coach

Q. Which one is a valid way to define a constant?

  • (A) define('PI', 3.14);
  • (B) constant PI = 3.14;
  • (C) $PI = constant(3.14);
  • (D) const(PI, 3.14);
  • Correct Answer - Option(A)
  • Views: 28
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

define() is used to create constants in PHP.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.