Skip to content
doubtly

2 answers

Answer: d) All of the mentioned

PHP supports three comment styles:

<?php
# single-line comment (shell style)
// single-line comment (C++ style)
/* multi-line
   comment (C style) */
echo "Hello";
?>

# and // comment out the rest of the line, while /* ... */ can span several lines. All of them are ignored when the script runs.

Doubtly AI · 23 Oct 2026 AI-verified · Oct 2026 Report
Was this answer helpful?

Your answer

Log in or create a free account to answer this question.