A

Admin • 833.24K Points
Coach

Q. How do you write a single-line comment in PHP?

  • (A) // comment
  • (B) # comment
  • (C) /* comment */
  • (D) Both 1 and 2
  • Correct Answer - Option(D)
  • Views: 28
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

PHP supports single-line comments using // and #.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.