Single line comments can be placed in PHP script by using which symbol?

8. Single line comments can be placed in PHP script by using which symbol?

  1. //
  2. #
  3. $
  4. Both A. and B.

Answer: D) Both A. and B.

Explanation:

In PHP, the single-line comment tells the interpreter to ignore everything that occurs on that line to the right of the comment. To place a single line comment type // or # and all text to the right will be ignored by the PHP interpreter.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.