To make a single-line comment in PHP, you can use ______ or ______ at the beginning of the line.

  • // or #
  • /* or */
  • All of the above
Single-line comments in PHP can be written using either double slashes (//) or a hash symbol (#) at the beginning of the line. The other options are not used for single-line comments. In PHP, everything after // or # on a line is considered a comment and is ignored by the PHP interpreter. Learn more: https://www.php.net/manual/en/language.basic-syntax.comments.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *