A

Admin • 832.27K Points
Coach

Q. What is the scope of a variable declared outside a function in PHP?

  • (A) Global
  • (B) Local
  • (C) Static
  • (D) Public
  • Correct Answer - Option(A)
  • Views: 11
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

Variables declared outside functions have global scope.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.