Php Comments


In PHP, We use // to make single-line comments or /* and */ to make a large comments block. so you can see below the following example.

Example of the single-line comment

<html> 
 <body> 
  <?php //this is a comment ?> 
 </body> 
</html>

Example of a block comment

<html>
<body>
<?php
/* this is 
a comment 
block
*/
?>
</body>
</html>