Multi-line comments in PHP start with ______ and end with ______.
- // and //
- /* and */
- # and #
Multi-line comments in PHP start with /* and end with */. Everything between these symbols is considered a comment, even if it spans multiple lines. This is a helpful feature for when you want to add longer explanations or temporarily remove a block of code from execution. The other options are not used for multi-line comments in PHP. Learn more: https://www.php.net/manual/en/language.basic-syntax.comments.php
Loading...
Related Quiz
- Regular Expressions in PHP are case-sensitive.
- What is the purpose of the mysqli_connect() function in PHP?
- You can decode a JSON object into a PHP array using the json_decode() ______.
- 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?
- How do you define a destructor in a PHP class?