![]() |
|
The <?php ?> Tag. Free online PHP and MySQL Web Database Programming Tutorial... |
| Lessons | The <?php ?> Tag |
|
|
1. <?php echo "First style"; ?> 2. <script language="php"> 3. <? Comments in PHP Just like other programming languages and HTML, PHP too supports comments in code. It may be noted that PHP supports C++ style of comments. Two types of comments are available in PHP: 1. Single Line Comments Single line comments can be added as under: <html>
<body>
<?php
// This is an example of single line comments
?>
</body>
</html>
2. Multi-Line CommentsMulti-line comments can be added as under: <html>
<body>
<?php
/* This is an example
of multi-line comments.
*/
?>
</body>
</html>
Next: First PHP Program
|