πŸ“Š PHP
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) To access a global variable inside a function

Explanation: global keyword allows access to variables declared outside the function.

Explanation by: Rati Dubey
global keyword allows access to variables declared outside the function.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
34
Total Visits
πŸ“½οΈ
6 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
91%
Success Rate