Q. How do you declare a PHP function named 'test'?

  • (A) function test() {}
  • (B) def test() {}
  • (C) func test() {}
  • (D) declare test() {}
πŸ’¬ Discuss
βœ… Correct Answer: (A) function test() {}
Explanation: The keyword 'function' is used to declare functions in PHP.
Explanation by: Rati Dubey
The keyword 'function' is used to declare functions in PHP.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
111
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
97%
Success Rate