Which of the following is not a valid way to denote a comment in PHP?

  • // Comment
  • /* Comment */
  • # Comment
In PHP, comments are denoted by either double slashes (//), a hash symbol (#), or by /* at the beginning and */ at the end for multi-line comments. HTML-style comments () are not recognized by PHP. 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 *