Comment in PHP

 <!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=, initial-scale=1.0">
    <title>PHP Tutorial</title>
</head>
<body>
<?php
echo "Hello world";
//This is a single-line comment
#This is also a single-line comment
/*
This is multiple-lines comment block
that span over multiple 
lines
*/

// You can also use comments to leave out parts of a code line
$x = 5 /* + 15 */ + 5;
echo $x;

?>
     

</body>
</html>

Comments

Popular Posts