πŸ“Š PHP
Q. What is the correct way to define a function in PHP?
  • (A) def myFunc()
  • (B) function myFunc()
  • (C) func myFunc()
  • (D) function:myFunc()
πŸ’¬ Discuss
βœ… Correct Answer: (B) function myFunc()

Explanation: Functions are defined using the 'function' keyword.

Explanation by: Rati Dubey
Functions are defined using the 'function' keyword.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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