PHP allows for both single-line and multi-line comments.
- TRUE
- FALSE
PHP does support both single-line and multi-line comments. Single-line comments can start with // or #, while multi-line comments are enclosed between /* and */. Comments are a critical part of any programming language, allowing developers to add context or explanation to their code, or to prevent certain lines of code from being executed without deleting them. Learn more: https://www.php.net/manual/en/language.basic-syntax.comments.php
Loading...
Related Quiz
- The = operator in PHP is a type of ______ operator.
- You are tasked with creating a PHP function that accepts a filename, opens the file, prints its contents, and then closes the file. How would you approach this task?
- What does $_FILES mean?
- The $_SERVER superglobal in PHP is often used to get the URL of the current page.
- What are some common practices in PHP cookie handling?