Comments are usually written within the block of PHP code to explain the functionality of the code. It will help you and others in the future to understand what you were trying to do with the PHP code. Comments are not displayed in the output, they are ignored by the PHP engine.
Single-Line Comments
<?php
echo "Hello World!"; // Output "Hello World!"
?>
Multi-line Comments
<?php
/* The following line of code
will output the "Hello World!" message */
echo "Hello World!";
?>
Example
<?php
/*This fucntion below displays text
* this is multiLine second line*/
// One Line comment
echo "Hello Student";
?>