PHP supports both single-line and multi-line comments.

  • TRUE
  • FALSE
PHP does indeed support both single-line and multi-line comments. Single-line comments can be denoted by double slashes (//) or a hash symbol (#), while multi-line comments can be enclosed between /* and */. Comments are essential for leaving notes, explaining code, or temporarily disabling blocks of code. They are ignored by the PHP interpreter, making them purely informational for developers. 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 *