How to put a comment in PHP?

PHP comments are similar to java and PHP lines can be commented using //. If we want to comment the entire block of lines, then we can enclose them in /* and * as follows:

 

<?php

// This is a comment and not executed.

/*

this is a block of lines that are commented using block comment.

*/

?>