How do you comment a single line in PHP?
Show answerHide answer
Correct answer: (A) // This is a comment
Explanation
In PHP a single-line comment starts with // (or #); /* */ is a multi-line comment and <!-- --> is HTML.
Correct answer: (A) // This is a comment
Explanation
In PHP a single-line comment starts with // (or #); /* */ is a multi-line comment and <!-- --> is HTML.
This is question 64 of Bihar STET Paper 2 Computer Science (Class 11-12) PYQ, 12 Sep 2023, Shift 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.