<?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; php comparison operators</title>
	<atom:link href="http://www.marcfraser.co.uk/tag/php-comparison-operators/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>PHP Operators</title>
		<link>http://www.marcfraser.co.uk/php-operators-58.htm</link>
		<comments>http://www.marcfraser.co.uk/php-operators-58.htm#comments</comments>
		<pubDate>Sat, 10 Oct 2009 10:30:42 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
				<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[arithmetic operators]]></category>
		<category><![CDATA[assignment operators]]></category>
		<category><![CDATA[comparison]]></category>
		<category><![CDATA[php comparison operators]]></category>
		<category><![CDATA[string operators]]></category>

		<guid isPermaLink="false">http://marcfraser.co.uk/?p=58</guid>
		<description><![CDATA[(from Full Article)
Here are most types of PHP Operators: Assignment Operators, Arithmetic Operators, Comparison Operators, and String Operators.
Assignment Operators
We have already met this type. This is where we set a variable equal to something or make a variable equal to another variable.
Arithmetic Operators



English 
Operator
Example


Addition
+
1+1


Subtraction
-
5-3


Multiplication
*
5*2


Division
/
10/2



An example of the use of Arithmetic operators is shown below:
&#60;?php

$add = [...]]]></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>Here are most types of PHP Operators: Assignment Operators, Arithmetic Operators, Comparison Operators, and String Operators.</p>
<p><span style="text-decoration: underline;">Assignment Operators</span></p>
<p>We have already met this type. This is where we set a variable equal to something or make a variable equal to another variable.</p>
<p><span style="text-decoration: underline;">Arithmetic Operators</span></p>
<table style="height: 83px;" border="1" cellspacing="0" cellpadding="0" width="278">
<tbody>
<tr>
<td width="142" valign="top"><strong>English </strong></td>
<td width="142" valign="top"><strong>Operator</strong></td>
<td width="142" valign="top"><strong>Example</strong></td>
</tr>
<tr>
<td width="142" valign="top">Addition</td>
<td width="142" valign="top">+</td>
<td width="142" valign="top">1+1</td>
</tr>
<tr>
<td width="142" valign="top">Subtraction</td>
<td width="142" valign="top">-</td>
<td width="142" valign="top">5-3</td>
</tr>
<tr>
<td width="142" valign="top">Multiplication</td>
<td width="142" valign="top">*</td>
<td width="142" valign="top">5*2</td>
</tr>
<tr>
<td width="142" valign="top">Division</td>
<td width="142" valign="top">/</td>
<td width="142" valign="top">10/2</td>
</tr>
</tbody>
</table>
<p>An example of the use of Arithmetic operators is shown below:</p>
<pre class="brush: php;">&lt;?php

$add = 1+1;

$subtract = 5-3;

$multiply = 5*2;

$divide = 10/2;

print “Addition Answer: ” . $add . “&lt;br&gt;”;

print “Subtraction Answer: ” . $subtract. “&lt;br&gt;”;

print “Multiplication Answer: ” . $multiply. “&lt;br&gt;”;

print “Addition Answer: ” . $divide. “&lt;br&gt;”;

?&gt;</pre>
<p>The output of the above code is:</p>
<blockquote><p>Addition Answer: 2<br />
Subtraction Answer: 2<br />
Multiplication Answer: 10<br />
Addition Answer: 5</p></blockquote>
<p>This showing that the server is carrying out the calculations, using our arithmetic operators. As well as the above, you could also use these operators in conjunction with each other like so:</p>
<pre class="brush: php;">&lt;?php

$quantity = 4;

$value = 5;

$total = $quantity * $value;

print $total;

?&gt;</pre>
<p>The output from the above is 20.</p>
<p><span style="text-decoration: underline;">Comparison Operators</span></p>
<p>Comparison Operators are used to check the relationship between variables/values. These are used inside statements (such as if statements) to check whether the result is true or false. Listed are some PHP comparison operators:</p>
<p><em>We will assume, for this example, that $a = 2 and $b = 3.</em></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="134" valign="top"><strong>English</strong></td>
<td width="71" valign="top"><strong>Operator</strong></td>
<td width="99" valign="top"><strong>Example</strong></td>
<td width="99" valign="top"><strong>Result</strong></td>
</tr>
<tr>
<td width="134" valign="top">Equal to</td>
<td width="71" valign="top">==</td>
<td width="99" valign="top">$a == $b</td>
<td width="99" valign="top">False</td>
</tr>
<tr>
<td width="134" valign="top">Not equal to</td>
<td width="71" valign="top">!=</td>
<td width="99" valign="top">$a != $b</td>
<td width="99" valign="top">True</td>
</tr>
<tr>
<td width="134" valign="top">Less than</td>
<td width="71" valign="top">&lt;</td>
<td width="99" valign="top">$a &lt; $b</td>
<td width="99" valign="top">True</td>
</tr>
<tr>
<td width="134" valign="top">Greater than</td>
<td width="71" valign="top">&gt;</td>
<td width="99" valign="top">$a &gt; $b</td>
<td width="99" valign="top">False</td>
</tr>
<tr>
<td width="134" valign="top">Less than or equal to</td>
<td width="71" valign="top">&lt;=</td>
<td width="99" valign="top">$a &lt;= $b</td>
<td width="99" valign="top">True</td>
</tr>
<tr>
<td width="134" valign="top">Greater than or equal to</td>
<td width="71" valign="top">&gt;=</td>
<td width="99" valign="top">$a &gt;= $b</td>
<td width="99" valign="top">False</td>
</tr>
</tbody>
</table>
<p>Please note the two equal signs in the equal to example – this is a common beginners’ mistake.</p>
<p>We will go into further examples of Comparison Operators in the next section on <em>PHP If Statements</em>.</p>
<p><span style="text-decoration: underline;">String Operators</span></p>
<p>We have already met String Operators, please read prior section named <em>Concatenation.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcfraser.co.uk/php-operators-58.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to PHP, the basics. [Full Article]</title>
		<link>http://www.marcfraser.co.uk/introduction-to-php-tutorial-9.htm</link>
		<comments>http://www.marcfraser.co.uk/introduction-to-php-tutorial-9.htm#comments</comments>
		<pubDate>Tue, 06 Oct 2009 18:28:54 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
				<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[php comparison operators]]></category>
		<category><![CDATA[php concatenation]]></category>
		<category><![CDATA[php conditional statements]]></category>
		<category><![CDATA[php if statements]]></category>
		<category><![CDATA[php includes]]></category>
		<category><![CDATA[php introduction]]></category>
		<category><![CDATA[php operators]]></category>
		<category><![CDATA[php syntax]]></category>
		<category><![CDATA[php tutorial]]></category>
		<category><![CDATA[php variables]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://marcfraser.co.uk/?p=9</guid>
		<description><![CDATA[Introductions
Article Scope
This article aims to express the basics, which a beginner should consider when learning PHP. It will explain how to create a very basic PHP page that will contain fundamental commands to PHP beginners.
For this article, I will be using XAMPP to execute my PHP code – this is free to download and is [...]]]></description>
			<content:encoded><![CDATA[<p><strong><em><span style="text-decoration: underline;">Introductions</span></em></strong></p>
<p><strong><em>Article Scope</em></strong></p>
<p>This article aims to express the basics, which a beginner should consider when learning PHP. It will explain how to create a very basic PHP page that will contain fundamental commands to PHP beginners.</p>
<p>For this article, I will be using <a href="http://www.apachefriends.org/en/xampp.html">XAMPP</a> to execute my PHP code – this is free to download and is great, especially if you do not have a web server with PHP installed.<span id="more-9"></span></p>
<p><strong><em>PHP Introduction</em></strong></p>
<p>PHP is open source software and therefore it is free to download and use. PHP’s website is: <a href="http://www.php.net/">http://www.php.net/</a> (where it is also available for download).</p>
<p>PHP is a powerful HTML-embedded scripting language, which allows web developers to write dynamically generated pages. The user does not see the PHP code, unlike HTML - instead, the server executes the PHP code (written by you) when the user requests it. Once executed, PHP will use HTML to output – which is determined by you, and thus you will need to have an understanding of HTML for HTML to be of any use to you.</p>
<p>PHP is widely used in conjunction with MySQL, which will be explained in a future article.</p>
<p><strong><em>Benefits of using PHP</em></strong></p>
<p>PHP will reduce time to create and maintain medium to large websites – due to the pages being dynamic, only a small number of PHP pages will need to be created/edited which will allow the use of a Database (commonly MySQL), containing the websites’ content. The contents of the database are extracted by PHP and a page is created ‘on-the-fly’.</p>
<p>A few more of PHP’s benefits are shown below:</p>
<ul>
<li>Allow the website to customize each users experience, based on information gathered from them.</li>
<li>Create websites that allow users to purchase items off a website (known as ecommerce).</li>
<li>PHP users can download and use many free Open Source PHP tools on their website.</li>
<li>As PHP is executed on the <em>server </em>this means that the PHP is not dependant on the users’ computer settings. For example, a user requesting a page in Firefox will get the same <em>PHP Output </em>as that of a user viewing in Internet Explorer, but please bear in mind that the way the HTML/CSS output is formatted may differ between the two. You will most likely have met this if you have used HTML/CSS to an intermediate level.</li>
<li>All PHP’s commands are described and examples given in the <a href="http://uk2.php.net/manual/en/index.php">PHP Online Manual</a>.</li>
</ul>
<p><strong><em><span style="text-decoration: underline;">Syntax</span></em></strong></p>
<p><strong><em><span style="text-decoration: underline;"> </span></em></strong></p>
<p><strong><em>Create a PHP file</em></strong></p>
<p>The first thing that all developers need to do is create a blank PHP page. This can be done by simply opening up Notepad and creating a new file – but instead of saving it with the ‘.txt’ affix, change it to ‘.php’. Alternatively, users that have dedicated editors such as Dreamweaver, etc. can create a blank PHP page by selecting File menu and create new PHP page.</p>
<p>Now that we have our blank PHP page we can begin.</p>
<p><strong><em>Tell the server we wish to begin</em></strong></p>
<p>We have to tell the server that we wish to execute PHP code, otherwise when the user requests the page, nothing dynamic will happen and instead it will just show our PHP code as plain text.</p>
<p>We use ‘&lt;?php’ to start our PHP code and then  ‘?&gt;’ to end. The ‘&lt;?php’ tells the server that the code we wish to start executing is PHP, and ‘?&gt;’ to end executing our PHP code. Outside of these brackets is where our HTML code should go which should not be dynamically updated, such as our Headers, Footers, etc.</p>
<p>You can use the shorthand PHP beginnings (‘&lt;?’) and endings (‘?&gt;’) but this is not recommended as servers do not always support these.</p>
<p><strong><em>PHP Comments</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;">
&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;">&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;">&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>
<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 id="attachment_10" class="wp-caption alignnone" style="width: 260px"><img class="size-full wp-image-10" title="First PHP output" src="http://marcfraser.co.uk/wp-content/uploads/2009/10/Picture1.png" alt="First PHP output" width="250" height="76" /><p class="wp-caption-text">First PHP output.</p></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>
<p><strong><em>PHP Variables</em></strong></p>
<p>Variables are important to PHP. A variable is a way of storing a value, such as text (“Hello”), numeric values (such as the integer value of 1) and also Boolean values (true and false). A variable can be re-used throughout your code instead of typing out the value over and over again. Variables will also not be new to you if you’ve had any experience of Algebra in Mathematics.</p>
<p>You define a variable in PHP like so:</p>
<pre class="brush: php;">&lt;?php

$name = “Marc Fraser”;

$age = 16;

?&gt;</pre>
<p>The first things you should notice is the dollar sign ($). In PHP this signifies that the item is a variable, I can name a variable whatever I wish such as $a, $b, $c, as long as I do not omit it – otherwise syntax errors will occur. At this time, you should also note that variables are case sensitive, therefore $a is different in the eyes of PHP than $A.</p>
<p>Once our data is stored in a variable, we can perform operations to it, such as print, string manipulation and if the variable is an integer, calculations can be done. Below is how to print a variable:</p>
<pre class="brush: php;">&lt;?php

$name = “Marc Fraser”;

$age = 16;

print $name;

print $age;

?&gt;</pre>
<p>The above will output “Marc Fraser16”.</p>
<p><span style="text-decoration: underline;">Variable naming conventions:</span></p>
<ul>
<li>PHP Variables may only start with a letter or underscore (_).</li>
<li>Spaces are not permitted in PHP variables and so underscores, or capitalization should be used – such as: $this_variable, $thisVariable.</li>
<li>Variables may only comprise of alphanumeric characters.</li>
</ul>
<p><strong><em>PHP Concatenation</em></strong></p>
<p>We can display our variables in a meaningful fashion with the use of <em>concatenation</em>. Concatenation makes use of the period (.). Please see the example below which is an example of affixing a value to the end of the variable:</p>
<pre class="brush: php;">&lt;?php

$name = “Marc”;

$name .= “Fraser”;

?&gt;</pre>
<p>Basically what ‘.=’ is doing is saying use the current value of $name and add “Fraser” to the end of it. If I were to now print $name, it would output “MarcFraser”.</p>
<p>We can also use concatenation to create readable sentences:</p>
<pre class="brush: php;">&lt;?php

$name = “ Marc Fraser”;

$age = 16;

print “We would like to welcome you,” . $name . “, age” . $age . “ to our website!”;

?&gt;</pre>
<p>This will output “We would like to welcome you, Marc Fraser, age 16 to our website!”. To do this, we close the string (close quotation mark) and add our period, which tells the server that we wish to begin parsing PHP again. When we want to stop parsing PHP we add a period and then begin our string again (quotation mark).</p>
<p><strong><em>PHP Operators</em></strong></p>
<p>Here are most types of PHP Operators: Assignment Operators, Arithmetic Operators, Comparison Operators, and String Operators.</p>
<p><span style="text-decoration: underline;">Assignment Operators</span></p>
<p>We have already met this type. This is where we set a variable equal to something or make a variable equal to another variable.</p>
<p><span style="text-decoration: underline;">Arithmetic Operators</span></p>
<table style="height: 83px;" border="1" cellspacing="0" cellpadding="0" width="278">
<tbody>
<tr>
<td width="142" valign="top"><strong>English </strong></td>
<td width="142" valign="top"><strong>Operator</strong></td>
<td width="142" valign="top"><strong>Example</strong></td>
</tr>
<tr>
<td width="142" valign="top">Addition</td>
<td width="142" valign="top">+</td>
<td width="142" valign="top">1+1</td>
</tr>
<tr>
<td width="142" valign="top">Subtraction</td>
<td width="142" valign="top">-</td>
<td width="142" valign="top">5-3</td>
</tr>
<tr>
<td width="142" valign="top">Multiplication</td>
<td width="142" valign="top">*</td>
<td width="142" valign="top">5*2</td>
</tr>
<tr>
<td width="142" valign="top">Division</td>
<td width="142" valign="top">/</td>
<td width="142" valign="top">10/2</td>
</tr>
</tbody>
</table>
<p>An example of the use of Arithmetic operators is shown below:</p>
<pre class="brush: php;">&lt;?php

$add = 1+1;

$subtract = 5-3;

$multiply = 5*2;

$divide = 10/2;

print “Addition Answer: ” . $add . “&lt;br&gt;”;

print “Subtraction Answer: ” . $subtract. “&lt;br&gt;”;

print “Multiplication Answer: ” . $multiply. “&lt;br&gt;”;

print “Addition Answer: ” . $divide. “&lt;br&gt;”;

?&gt;</pre>
<p>The output of the above code is:</p>
<blockquote><p>Addition Answer: 2<br />
Subtraction Answer: 2<br />
Multiplication Answer: 10<br />
Addition Answer: 5</p></blockquote>
<p>This showing that the server is carrying out the calculations, using our arithmetic operators. As well as the above, you could also use these operators in conjunction with each other like so:</p>
<pre class="brush: php;">&lt;?php

$quantity = 4;

$value = 5;

$total = $quantity * $value;

print $total;

?&gt;</pre>
<p>The output from the above is 20.</p>
<p><span style="text-decoration: underline;">Comparison Operators</span></p>
<p>Comparison Operators are used to check the relationship between variables/values. These are used inside statements (such as if statements) to check whether the result is true or false. Listed are some PHP comparison operators:</p>
<p><em>We will assume, for this example, that $a = 2 and $b = 3.</em></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="134" valign="top"><strong>English</strong></td>
<td width="71" valign="top"><strong>Operator</strong></td>
<td width="99" valign="top"><strong>Example</strong></td>
<td width="99" valign="top"><strong>Result</strong></td>
</tr>
<tr>
<td width="134" valign="top">Equal to</td>
<td width="71" valign="top">==</td>
<td width="99" valign="top">$a == $b</td>
<td width="99" valign="top">False</td>
</tr>
<tr>
<td width="134" valign="top">Not equal to</td>
<td width="71" valign="top">!=</td>
<td width="99" valign="top">$a != $b</td>
<td width="99" valign="top">True</td>
</tr>
<tr>
<td width="134" valign="top">Less than</td>
<td width="71" valign="top">&lt;</td>
<td width="99" valign="top">$a &lt; $b</td>
<td width="99" valign="top">True</td>
</tr>
<tr>
<td width="134" valign="top">Greater than</td>
<td width="71" valign="top">&gt;</td>
<td width="99" valign="top">$a &gt; $b</td>
<td width="99" valign="top">False</td>
</tr>
<tr>
<td width="134" valign="top">Less than or equal to</td>
<td width="71" valign="top">&lt;=</td>
<td width="99" valign="top">$a &lt;= $b</td>
<td width="99" valign="top">True</td>
</tr>
<tr>
<td width="134" valign="top">Greater than or equal to</td>
<td width="71" valign="top">&gt;=</td>
<td width="99" valign="top">$a &gt;= $b</td>
<td width="99" valign="top">False</td>
</tr>
</tbody>
</table>
<p>Please note the two equal signs in the equal to example – this is a common beginners’ mistake.</p>
<p>We will go into further examples of Comparison Operators in the next section on <em>PHP If Statements</em>.</p>
<p><span style="text-decoration: underline;">String Operators</span></p>
<p>We have already met String Operators, please read prior section named <em>Concatenation.</em></p>
<p><strong><em>PHP IF Statements</em></strong></p>
<p>In PHP <a href="http://us.php.net/manual/en/control-structures.if.php">IF statements</a> are extensively used.  It allows you to show the user data depending on certain conditions. The best way to describe it is with the use of an example: You want to build a dashboard with items you do not want all employees to see, this is where IF statements come in handy – you can check that they are a certain person or a member of a certain group and if this is true the employee can see the item, if it is false (the employee isn’t in the necessary group) then the employee shouldn’t see the items.</p>
<p>We will use <em>Comparison Operators </em>in the example below;</p>
<pre class="brush: php;">&lt;?php

$isManagement = false;

if($isManagement == true) {

// Show the data that you wish only management to see.

} else {

// You are not management and so cannot see this data.

}

?&gt;</pre>
<p>The above example uses comments to show how the if statement works in terms of the example farther above. $isManagement will come from the employees record.</p>
<p>Within the IF() statement we are comparing to see if $isManagement is true, within the first parenthesis ({}) is where the PHP code will go if the result is true. The else statement is included to catch all other occurrences apart from the true occurrences. Please see the <a href="http://us.php.net/manual/en/control-structures.else.php">PHP Manual</a> for another example.</p>
<p><strong><em>PHP Include</em></strong></p>
<p>The <a href="http://us.php.net/manual/en/function.include.php">include command</a> can save you a lot of time as you can create a header, place it in a file and just include that file on every page and the header will be shown. This will also mean that you do not need to edit every page every time you need to edit your header!</p>
<p>Basically the PHP Include command takes the file name and inserts the contents of the file into the script.</p>
<p>To illustrate this, I will use an example:</p>
<ol>
<li>Create a HTML file called Menu.html and insert the following code into it:</li>
</ol>
<pre class="brush: xml;">&lt;ul&gt;

&lt;li&gt;Home&lt;/li&gt;

&lt;li&gt;Articles&lt;/li&gt;

&lt;li&gt;Tutorial&lt;/li&gt;

&lt;/ul&gt;</pre>
<ol>
<li>Now create a menu_example.php PHP file (in the same directory as Menu.html) and insert:</li>
</ol>
<pre class="brush: php;">&lt;?php

include(‘Menu.html’);

?&gt;</pre>
<ol>
<li>Navigate to menu_example.php in your browser and run it – you should see:</li>
</ol>
<div id="attachment_11" class="wp-caption alignnone" style="width: 146px"><img class="size-full wp-image-11" title="Menu Example" src="http://marcfraser.co.uk/wp-content/uploads/2009/10/Picture-2.png" alt="Shows the menu that is being included." width="136" height="72" /><p class="wp-caption-text">Menu Included.</p></div>
<p>This is a very basic introductory PHP tutorial.  When I get time, I'll write more each time increasing the difficulty of the methods.  Hope you enjoyed reading!  Tune in for more.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcfraser.co.uk/introduction-to-php-tutorial-9.htm/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
