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
Loading...
Related Quiz
- What can be the potential issues with a for loop in PHP?
- What are some common practices in PHP when working with MySQL databases?
- How do you call a static method in PHP?
- How do you handle errors when using miscellaneous functions in PHP?
- If the condition in a PHP for loop is never false, the loop will ______.