Which of the following is not a valid way to denote a comment in PHP?
- // Comment
- /* Comment */
- # Comment
In PHP, comments are denoted by either double slashes (//), a hash symbol (#), or by /* at the beginning and */ at the end for multi-line comments. HTML-style comments () are not recognized by PHP. Learn more: https://www.php.net/manual/en/language.basic-syntax.comments.php
Loading...
Related Quiz
- OOP in PHP stands for Object-Oriented ______.
- You have a PHP script and you need to move an uploaded file to a specific directory. How would you do this?
- What is the difference between session_unregister() and session_unset()?
- You are writing a PHP script and you need to fetch the content of a web page from a given URL. How would you do this using network functions?
- In PHP, you can connect to a MySQL database using the mysqli_connect function.