Every programmer has his or her opinion as to what information should be included with the program code. Most programmers add comments with their code in order to remind themselves, and anyone else, what the code does and how it does it. When deciding what information to include ask yourself what you would need to be told about the program if someone else had written the program and now you were asked to run and maintain it. Most of the programs that you write will have more than one page of code. Each page of code will be saved as a PHP program file. (filename.php3) There are two places in the program file where you will want to add some informational comments.
| |||