Example -
To write the php code, you have to use <?php ?>
syntax as mentioned below.
Code and Syntax –
<html>
<body>
<h1>PHP page</h1>
<?php
echo "Hello !";
//write hello
world on page
?>
</body>
</html>
?>
</body>
</html>
Explanation
–
To add comments, you have to use // or /* */.
// is used to comment one line.
/* */ is
used to comment multiple lines.
This is how you can add comments in php. For more php questions and answers,
dumps,tutorials for beginners and experienced people visit
http://www.top-php-interview-questions.blogspot.in If you find any errors while executing this
program, you can make your comments or mail me at reply2sagar@gmail.com
No comments:
Post a Comment