πŸ“Š PHP
Q. Which of the following is the correct way to declare a function in PHP?
  • (A) function myFunction() {}
  • (B) def myFunction() {}
  • (C) func myFunction() {}
  • (D) function:myFunction() {}
πŸ’¬ Discuss
βœ… Correct Answer: (A) function myFunction() {}

Explanation: Functions are declared using the 'function' keyword followed by the name and parentheses.

Explanation by: Rati Dubey
Functions are declared using the 'function' keyword followed by the name and parentheses.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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