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

  • (A) Global
  • (B) Local
  • (C) Static
  • (D) Public
πŸ’¬ Discuss
βœ… Correct Answer: (A) Global
Explanation: Variables declared outside functions have global scope.
Explanation by: Rati Dubey
Variables declared outside functions have global scope.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
77
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
86%
Success Rate