Home »
MCQs »
PHP MCQs
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?
- //
- #
- $
- 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.