Beginner PHP
Q5 / 100

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

Correct! Well done.

Incorrect.

The correct answer is B) // comment or # comment

B

Correct Answer

// comment or # comment

Explanation

PHP supports // and # for single-line comments and /* ... */ for multi-line comments.

Progress
5/100