<?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 &#124; A Blog about all things &#187; output html with php</title>
	<atom:link href="http://www.marcfraser.co.uk/tag/output-html-with-php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.marcfraser.co.uk</link>
	<description>A blog about all things personal, web related.</description>
	<lastBuildDate>Fri, 23 Apr 2010 13:50:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Outputting HTML using PHP [+ Semicolons]</title>
		<link>http://www.marcfraser.co.uk/outputting-html-using-php-semicolons-50.htm</link>
		<comments>http://www.marcfraser.co.uk/outputting-html-using-php-semicolons-50.htm#comments</comments>
		<pubDate>Sat, 10 Oct 2009 10:24:23 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
				<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[output html with php]]></category>
		<category><![CDATA[php semicolons]]></category>

		<guid isPermaLink="false">http://marcfraser.co.uk/?p=50</guid>
		<description><![CDATA[(from Full Article)
Semicolons
Semicolons are used extensively in PHP. The semicolon generally (there are exceptions) signifies the end of a PHP statement and should not be forgotten, otherwise unsightly errors will occur. An example will be shown in the Outputting HTML code using PHP section.
Outputting HTML code using PHP
Outputting HTML code using PHP is extremely easy. [...]]]></description>
			<content:encoded><![CDATA[<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><strong><em>Semicolons</em></strong></p>
<p>Semicolons are used extensively in PHP. The semicolon <em>generally</em> (there are exceptions) signifies the end of a PHP statement and should not be forgotten, otherwise unsightly errors will occur. An example will be shown in the <em>Outputting HTML code using PHP</em> section.</p>
<p><strong><em>Outputting HTML code using PHP</em></strong></p>
<p>Outputting HTML code using PHP is extremely easy. It can be done using the <a href="http://uk2.php.net/print">PHP Print</a> command or indeed <a href="http://uk.php.net/echo">PHP Echo</a>. The difference between the two commands can be read on the <a href="http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40">PHP FAQts</a> site.</p>
<p>Below is how to output “This is my first output PHP string” in HTML paragraph and bold tags. This example will also show how the semicolon is used (read prior section, <em>Semicolons</em>).</p>
<pre class="brush: php;">&lt;html&gt;

&lt;head&gt;

&lt;title&gt;My first PHP outputs&lt;/title&gt;

&lt;/head&gt;

&lt;body&gt;

&lt;?php

print “&lt;p&gt;&lt;strong&gt;This is my first output PHP string&lt;/strong&gt;&lt;/p&gt;”;

// For consistency I will show the use of the echo command

echo “&lt;p&gt;&lt;strong&gt;This is my first output PHP string&lt;/strong&gt;&lt;/p&gt;”;

?&gt;

&lt;/body&gt;

&lt;/html&gt;</pre>
<p>If you run the above code, you will see that you get the output:</p>
<div>
<dl id="attachment_10" style="width: 260px;">
<dt><img title="First PHP output" src="http://marcfraser.co.uk/wp-content/uploads/2009/10/Picture1.png" alt="First PHP output" width="250" height="76" /></dt>
<dd>First PHP output.</dd>
</dl>
</div>
<p>The first line is of the print command and the second line is the output of the echo command. Please note that there is no difference between the two. Please also note the usage of quotation marks – these are used to tell the PHP code that we wish not to execute the contents contained within.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcfraser.co.uk/outputting-html-using-php-semicolons-50.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
