πŸ“Š PHP
Q. What is the scope of a variable declared outside a function?
  • (A) Global
  • (B) Local
  • (C) Static
  • (D) Private
πŸ’¬ Discuss
βœ… Correct Answer: (A) Global

Explanation: Variables declared outside a function are in the global scope.

Explanation by: Mr. Dubey
Variables declared outside a function are in the global scope.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
89
Total Visits
πŸ“½οΈ
6 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate