A

Admin • 832.27K Points
Coach

Q. What is the use of the 'global' keyword in PHP?

  • (A) To access a global variable inside a function
  • (B) To declare a global variable
  • (C) To make a variable local
  • (D) To define a constant
  • Correct Answer - Option(A)
  • Views: 11
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

global keyword allows access to variables declared outside the function.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.