A

Admin • 802.91K Points
Coach

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() {}
  • Correct Answer - Option(A)
  • Views: 5
  • Filed under category PHP
  • Hashtags:

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.