A

Admin • 833K Points
Coach

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

  • (A) function test() {}
  • (B) def test() {}
  • (C) func test() {}
  • (D) declare test() {}
  • Correct Answer - Option(A)
  • Views: 18
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

The keyword 'function' is used to declare functions in PHP.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.