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
Loading...
Related Quiz
- How do you access the elements of a multidimensional array in PHP?
- How do I escape data before storing it in the database?
- The + operator in PHP is used for ______.
- You need to handle file uploads in your PHP script, including checking the size and type of the uploaded file and handling any upload errors. How would you do this?
- You are writing a PHP script and you need to send an email. How would you do this using mail functions?