![]() |
|
Tutorial [PHP] Tutorial Four Comments - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: PHP (https://sinister.li/Forum-PHP) +--- Thread: Tutorial [PHP] Tutorial Four Comments (/Thread-Tutorial-PHP-Tutorial-Four-Comments) |
[PHP] Tutorial Four Comments - KyleFYI - 02-21-2013 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. |