What is the scope of a constant in PHP?

80. What is the scope of a constant in PHP?

  1. Local
  2. Global
  3. Static
  4. Fixed

Answer: B) Global

Explanation:

The constants are automatically global and can be used across the entire script.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.