How are comments in PHP denoted?

  • /.../ and //
  • < !--...-- >
  • # and /.../
  • // and #
PHP supports several ways of denoting comments. Single-line comments can be started with // or #, while multi-line comments or block comments are enclosed in /* and */. This makes it easy to include notes or temporarily disable code. 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 *