Cazpa.com PHP Developer & Website Designer

7Nov/090

PHP Commenting your code

You may have noticed that I have commented the code and if you have tested any of the scripts so far you will have noticed that these do not effect the script itself, these are great for developers to take note of lines of code, greater understanding by other developers as to why you have done certain things and a lot of developers use the multiple line comment to display licensing information, here are the different types of comment you can use:

<?php
// This is a single line comment

# This is also a single line comment

/* This is a
multiple line
comment */
?>

If you wish to comment in HTML then use the following:
<html>
<title></title>
<body>
<!-- Your comment here -->

<?php
// Code here!
?>
</body>
</html>

No related posts.

About Daniel Smith

I am the boss around here, if you need anything then send me a message :))

Popular Content & Keywords

depositfiles hack,add update delete in php,warning: mail() [function mail]: smtp server response: 554 the message was rejected because it contains prohibited virus or spam content in,php tutorial deutsch,php define variable,,rails vs php performance,php add update delete,add update delete records from sql server using php,warning: mail() [function mail]: smtp server response: 554 the message was rejected because it contains prohibited virus or spam content,tutorial create contact form in dreamweaver php,ruby on rails vs php 2010,php tutorial // user registration w/ sql,send emails with a web form: php scripting,
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

You must be logged in to post a comment.

No trackbacks yet.

Powered by WordPress Lab