To make a single-line comment in PHP, you can use ______ or ______ at the beginning of the line.
- // or #
- /* or */
- All of the above
Single-line comments in PHP can be written using either double slashes (//) or a hash symbol (#) at the beginning of the line. The other options are not used for single-line comments. In PHP, everything after // or # on a line is considered a comment and is ignored by the PHP interpreter. Learn more: https://www.php.net/manual/en/language.basic-syntax.comments.php
Loading...
Related Quiz
- What are some common practices in PHP session handling?
- Which of the following can be done using either echo or print in PHP?
- The filter_var() function is used to filter and validate data in PHP.
- You are writing a PHP script and you need to find the highest value in a list of numbers. How would you do this?
- A common use case of the time() function in PHP is to get the current Unix ______.