<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Marc Fraser &#187; php comments</title>
	<atom:link href="http://www.marcfraser.co.uk/tag/php-comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.marcfraser.co.uk</link>
	<description>A blog about all things personal, web and politics related.</description>
	<lastBuildDate>Mon, 24 Jan 2011 21:12:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>PHP Comments</title>
		<link>http://www.marcfraser.co.uk/php-comments-46.htm</link>
		<comments>http://www.marcfraser.co.uk/php-comments-46.htm#comments</comments>
		<pubDate>Sat, 10 Oct 2009 10:19:43 +0000</pubDate>
		<dc:creator>Marc Fraser</dc:creator>
				<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[php comments]]></category>

		<guid isPermaLink="false">http://marcfraser.co.uk/?p=46</guid>
		<description><![CDATA[(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: &#60;?php //This is our comment ?&#62; We can [...]]]></description>
			<content:encoded><![CDATA[<div style="padding-top:5px;padding-right:0px;padding-bottom:5px;padding-left:0px;;">
										<iframe
											style="height:25px !important;" frameborder="0"										
	 										scrolling="no" width="320"
	 										src="http://www.linksalpha.com/social?link=http%3A%2F%2Fwww.marcfraser.co.uk%2Fphp-comments-46.htm">
										</iframe>
										</div><p><strong><em><strong><em></em></strong></em></strong><strong><em><strong><em><a href="../introduction-to-php-tutorial-9.htm">(from Full Article)</a></em></strong></em></strong></p>
<p>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:</p>
<pre class="brush: php; title: ;">
&lt;?php

//This is our comment

?&gt;</pre>
<p>We can also place comments over multiple lines by using ‘/*’ to begin and ‘*/’ to end our comment – as shown below.</p>
<pre class="brush: php; title: ;">&lt;?php

/* This is a

comment set

over multiple

lines */

?&gt;</pre>
<p>Comments will be a lot more useful when more advance techniques in PHP are used.</p>
<p>A basic page in PHP is shown below, using our start, and end tags as well as comments. Please note that <strong>nothing will show</strong>, as comments are being used.</p>
<pre class="brush: php; title: ;">&lt;html&gt;

&lt;head&gt;

&lt;title&gt;First PHP Comments&lt;/title&gt;

&lt;/head&gt;

&lt;body&gt;

&lt;?php

// This is a comment and will not be shown to the public

/* This is a multi-line comment and will not be shown

to the public */

?&gt;

&lt;/body&gt;

&lt;/html&gt;</pre>
<table style="border:0px; width:100%;margins: auto;width:auto; margin-right: auto; margin-left:auto; padding:0px;border-spacing: 0px;border-collapse: collapse;display: table;" class="counters_tbl">
								 <tr> <td style="border:0px; width:100%;margins: auto;width:auto; margin-right: auto; margin-left:auto; padding:0px;"> <div style="margin-bottom:15px;"><div class="counters_2" style="background-color:none;" id="counter_left"><a style="text-decoration:none;color:#333333; font-family: helvetica, arial;font-size: 13px;" class="counter_links" title="Retweet" href="http://www.linksalpha.com/discuss?service=twitter&target=http%3A%2F%2Fwww.marcfraser.co.uk%2Fphp-comments-46.htm"><div> <img style="vertical-align:text-bottom; margin:0; padding:0; border:0; outline:0;" src="http://www.marcfraser.co.uk/wp-content/plugins/social-discussions/icons/t1.png" />&nbsp</div></a></div><div class="counters_2" style="background-color:none;" ><a style="text-decoration:none;color:#333333; font-family: helvetica, arial;font-size: 13px;" class="counter_links" title="Share on Facebook" href="http://www.linksalpha.com/discuss?service=fb_share&target=http%3A%2F%2Fwww.marcfraser.co.uk%2Fphp-comments-46.htm"><div> <img style="vertical-align:text-bottom; margin:0; padding:0; border:0; outline:0;background-color:none;" style="border:1px solid black" src="http://www.marcfraser.co.uk/wp-content/plugins/social-discussions/icons/fbs.png"/>&nbsp</div></a></div><div class="counters_3" style="background-color:none;" ><a style="text-decoration:none;color:#333333; font-family: helvetica, arial;font-size: 13px;" class="counter_links" title="Like on Facebook" href="http://www.linksalpha.com/discuss?service=fb_like&target=http%3A%2F%2Fwww.marcfraser.co.uk%2Fphp-comments-46.htm"><div class="fb_like"></div></a></div><div class="counters_3" style="background-color:none;" ><a style="text-decoration:none;color:#333333; font-family: helvetica, arial;font-size: 13px;" class="counter_links" title="Comment on Facebook" href="http://www.linksalpha.com/discuss?service=fb_comment&target=http%3A%2F%2Fwww.marcfraser.co.uk%2Fphp-comments-46.htm"><div class="fb_comment"></div></a></div><div class="counters_2" style="background-color:none;" ><a style="text-decoration:none;color:#333333; font-family: helvetica, arial;font-size: 13px;" class="counter_links" title="Buzz on Google" href="http://www.linksalpha.com/discuss?service=buzz&target=http%3A%2F%2Fwww.marcfraser.co.uk%2Fphp-comments-46.htm"><div> <img style="vertical-align:text-bottom; margin:0; padding:0; border:0; outline:0;background-color:none;" src="http://www.marcfraser.co.uk/wp-content/plugins/social-discussions/icons/gb1.png" />&nbsp</div></a></div><div class="counters_2" style="background-color:none;" ><a style="text-decoration:none;color:#333333; font-family: helvetica, arial;font-size: 13px;" class="ontip counter_links" title="bit.ly Clicks" href="http://www.linksalpha.com/discuss?service=bitly&target=http%3A%2F%2Fwww.marcfraser.co.uk%2Fphp-comments-46.htm"><div> <img style="vertical-align:text-bottom; margin:0; padding:0; border:0; outline:0;background-color:none;" src="http://www.marcfraser.co.uk/wp-content/plugins/social-discussions/icons/b1.png" />&nbsp;</div></a></div><div class="counters_2" style="background-color:none;" ><a style="text-decoration:none;color:#333333; font-family: helvetica, arial;font-size: 13px;" class="counter_links" title="Buzz on Yahoo" href="http://www.linksalpha.com/discuss?service=yahoo&target=http%3A%2F%2Fwww.marcfraser.co.uk%2Fphp-comments-46.htm"><div> <img style="vertical-align:text-bottom; margin:0; padding:0; border:0; outline:0;background-color:none;" src="http://www.marcfraser.co.uk/wp-content/plugins/social-discussions/icons/y1.png" />&nbsp;</div></a></div><div class="counters_2" style="background-color:none;" ><a style="text-decoration:none;color:#333333; font-family: helvetica, arial;font-size: 13px;" class="counter_links" title="Digg This" href="http://www.linksalpha.com/discuss?service=digg&target=http%3A%2F%2Fwww.marcfraser.co.uk%2Fphp-comments-46.htm"><div> <img style="vertical-align:text-bottom; margin:0; padding:0; border:0; outline:0;background-color:none;" src="http://www.marcfraser.co.uk/wp-content/plugins/social-discussions/icons/d1.png" />&nbsp;</div></a></div><div class="counters_2" style="background-color:none;"  id="counter_right"></div></div> </td> </tr> </table><meta property="la:title" content="PHP+Comments"/><meta property="la:post_desc" content="(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:

[php]
&lt;?php

//This is o"/>]]></content:encoded>
			<wfw:commentRss>http://www.marcfraser.co.uk/php-comments-46.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

