Login Register






Tutorial [PHP] Tutorial Four Comments filter_list
Author
Message
[PHP] Tutorial Four Comments #1
Comments are like notes. You can put a note on your code and can read it when you want.

A single line comment is used like this

PHP Code:
<?PHP $number1 = 1; //This is number 1! ?>

A multiple line comment is like this.

PHP Code:
<?PHP $number1 = 1; /* This is number 1! This is also in the comment. */ ?>

This allows you to read your code. If your working with a big team or small team. It saves time and you don't need to read every line of the code to see what it does.

Note: If you need any help and I have not yet made a tutorial for it please visit php.net.

Reply