The comment tag is used to insert a comment in the PHP code.
In browser, comment will not appear. It is useful to insert commentin PHP code
when code is needed to edit later.
In PHP, we use // to make a single-line comment or /* and */ to make a large comment block.
Example
<html>
<body>
<?php
//This is a comment
/*
This is
a comment
block
*/
?>
</body>
</html>
No comments:
Post a Comment