Categories
- Personal (4)
- PHP Tutorials (10)
- Site News (3)
Archives
- April 2010 (2)
- October 2009 (14)
- September 2009 (1)
Tags
3G
3GS
arithmetic operators
assignment operators
begin execute
Blackberry
comparison
create php file
execute php code
iPhone
iPhone 3G
iTunes
Marc Fraser
Microsoft Exchange
Mobile
neglect
output html with php
php advantages
php benefits
php comments
php comparison operators
php concatenation
php conditional statement
php conditional statements
php if
php if statement
php if statements
php include
php includes
php introduction
php operators
php semicolons
php syntax
php tutorial
PHP Tutorials
php variables
retrospective
scotland
smoking
smoking ban
smoking in public
string operators
tutorial
Twitter
Twitter app
PHP Comments
(from Full Article)
We place comments in PHP code to make the code more maintainable and readable. These comments will not be viewable to the public, only to the person editing the PHP file. To comment in PHP we should prefix ‘//’ to our comment, for example:
We can also place comments over multiple lines by using ‘/*’ to begin and ‘*/’ to end our comment – as shown below.
Comments will be a lot more useful when more advance techniques in PHP are used.
A basic page in PHP is shown below, using our start, and end tags as well as comments. Please note that nothing will show, as comments are being used.