Using Comments
Comment is a part of your PHP code that will not be translated by the PHP engine. You can use it to write documentation of your PHP script describing what the code should do. A comment can span only for one line or span multiple line. PHP support three kinds of comment tags :
Example : comments.php
<?php
echo "First line <br>"; // You won't see me in the output // I'm a one liner comment /* # Hi i'm a Unix shell-style comment |
![]() |
Opening and ending PHP tags | PHP MySQL Tutorial : Using Comments | PHP Variables |
![]() |
This tutorial is far from perfect so if you have any critiques, questions, comments or problems about this tutorial please tell me. Click here to send your feedback. And if you like this tutorial please link to this site. It will really help a lot :-) |
Copyright © 2004 - 2008 www.php-mysql-tutorial.com | Privacy Policy