You are here: Daniel Dumas » Blog, PHP Tutorials »

PHP and MySQL Basics: Comments

PHP and MySQL Basics: Comments

For greater readability of your PHP code, you should add comments to it, so that you or other people who will look at the code later will understand it clearly.

To do this refer to the example below..

PHP Single Line Comment:

<?php
// Hi There I am a PHP single line comment!
?>

PHP Multi-Line comment:

<?php
/* Hello everybody I am
PHP Multi-Line Comment */
?>

Discussion

Leave the First Comment Here





Spam protection by WP Captcha-Free