In the last example, We learn about single line comment. In this example, We are going to learn PHP multi-line comments. In multi-line comment PHP allow us to write multiple lines as a comment. Every developer must write the comment. So, another developer easily understands the code.
PHP multi-line comments
First of all, We are going to create a new PHP file for multi-line comment example. So, Let’s create a new file at “C:\xampp\htdocs\first\thecodignstuff.php” then write the below code.
* This line print the Hello World!
echo 'Hello World!';
* This line print the sum of two number.
* This line print the sum of 5 and 15 numbers.
Finally, We are ready with a multi-line comment example. So, Let’s run the file and check the output like
The comments are not visible on output it’s only usable for a developer. If you face any issue on this example write the comment below.