<?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>Web Design company - Goweb99 blog &#187; php</title>
	<atom:link href="http://www.goweb99.com/blog/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.goweb99.com/blog</link>
	<description>Get your website designed for as low as $99.</description>
	<lastBuildDate>Fri, 30 Jul 2010 20:27:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP $_GET Function</title>
		<link>http://www.goweb99.com/blog/php-tutorial/php-_get-function/</link>
		<comments>http://www.goweb99.com/blog/php-tutorial/php-_get-function/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 07:34:53 +0000</pubDate>
		<dc:creator>tutor</dc:creator>
				<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[$_get]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php get]]></category>
		<category><![CDATA[php get function]]></category>
		<category><![CDATA[PHP Tuts]]></category>

		<guid isPermaLink="false">http://www.goweb99.com/blog/?p=484</guid>
		<description><![CDATA[$_GET is a built-in function in PHP which is used to collect values in a form where the method is &#8220;get&#8221;.
Get method is rarely used though, as the information sent from a form with the GET method is visible to everyone in the browser&#8217;s address bar.
Also it has a limit on the amount of information [...]]]></description>
			<content:encoded><![CDATA[<p>$_GET is a built-in function in PHP which is used to collect values in a form where the method is &#8220;get&#8221;.</p>
<p>Get method is rarely used though, as the information sent from a form with the GET method is visible to everyone in the browser&#8217;s address bar.</p>
<p>Also it has a limit on the amount of information that can be sent. All the information is concatenated in a single line and this line is printed on the browser’s address bar.</p>
<ul>
<div class="example">For eg:</p>
<p>&lt;form action=”data.php” method=”post”&gt;<br />
Name: &lt;input type=”text” name=”username” /&gt;<br />
Address: &lt;input type=”text” name=”address” /&gt;<br />
&lt;input type=”submit” /&gt;<br />
&lt;/form&gt;</p></div>
</ul>
<p>When the user clicks the &#8220;Submit&#8221; button, the URL sent to the server could look something like this:</p>
<ul> http://www.goweb99.com/data.php?username=Tutor&amp;address=Capital+Federal</ul>
<p>The &#8220;data.php&#8221; file can now use the $_GET function to collect form data (the names of the form fields will automatically be the keys in the $_GET array):</p>
<ul>
<div class="example">For eg:</p>
<p>&lt;html&gt;<br />
&lt;body&gt;<br />
Welcome &lt;?php echo $_GET["username"]; ?&gt; ! to the world of PHP&lt;br /&gt;<br />
You live at &lt;?php echo $_GET["address"]; ?&gt; .<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></div>
</ul>
<p>Get method should not be used when sending passwords or other sensitive information.</p>
<p>However, because the variables are displayed in the URL, it is possible to bookmark the page, which may serve some purpose.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goweb99.com/blog/php-tutorial/php-_get-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP If Condition</title>
		<link>http://www.goweb99.com/blog/php-tutorial/php-if-condition/</link>
		<comments>http://www.goweb99.com/blog/php-tutorial/php-if-condition/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 10:47:58 +0000</pubDate>
		<dc:creator>tutor</dc:creator>
				<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php elseif]]></category>
		<category><![CDATA[php if-else]]></category>
		<category><![CDATA[php switch]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[PHP Tuts]]></category>

		<guid isPermaLink="false">http://www.goweb99.com/blog/?p=450</guid>
		<description><![CDATA[The If Statement
This statement executes a piece of code only when a condition is true.
Syntax
 if (condition) code to be executed if condition is true;

For eg:
&#60;html&#62;
&#60;body&#62;
&#60;?php
$d=date(&#8221;D&#8221;);
if ($d==&#8221;Fri&#8221;) echo &#8220;Today is Friday!&#8221;;
?&#62;
&#60;/body&#62;
&#60;/html&#62;

The if&#8230;else Statement
This is a two way condition evaluation, in which there are yes and no both lead to different code block.
We just add one [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The If Statement</strong></p>
<p>This statement executes a piece of code only when a condition is true.</p>
<p>Syntax</p>
<ul> if (condition) code to be executed if condition is true;</ul>
<ul>
<div class="example">For eg:</p>
<p>&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;?php<br />
$d=date(&#8221;D&#8221;);<br />
if ($d==&#8221;Fri&#8221;) echo &#8220;Today is Friday!&#8221;;<br />
?&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></div>
</ul>
<p><strong>The if&#8230;else Statement</strong></p>
<p>This is a two way condition evaluation, in which there are yes and no both lead to different code block.</p>
<p>We just add one else condition in the above if statement.</p>
<p>Syntax</p>
<ul> if (condition)<br />
code to be executed if condition is true;<br />
else<br />
code to be executed if condition is false;</ul>
<ul>
<div class="example">For eg:</p>
<p>&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;?php<br />
$d=date(&#8221;D&#8221;);          if ($d==&#8221;Fri&#8221;)<br />
echo &#8220;Today is Friday!&#8221;;         else<br />
echo &#8220;Today is not Friday!&#8221;;<br />
?&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></div>
</ul>
<p>If more than one line should be executed, then the lines should be enclosed within curly braces:</p>
<ul>
<div class="example">&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;?php<br />
$d=date(&#8221;D&#8221;);<br />
if ($d==&#8221;Fri&#8221;)<br />
{<br />
echo &#8220;Hello!&lt;br /&gt;&#8221;;<br />
echo &#8220;Today is Friday!&#8221;;<br />
}<br />
?&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</div>
</ul>
<p><strong>The if&#8230;elseif&#8230;.else Statement</strong></p>
<p>This construct is used when there are more conditions than just true or false.</p>
<p>When PHP evaluates If&#8230;elseif&#8230;else statement it first sees if the If statement is true. If that test comes out to be false it then checks the first elseif statement.</p>
<p>If then also the result comes out to be false it will check the next elseif statement, if there exists any more otherwise, it will evaluate the else segment, if one exists.</p>
<p>Syntax</p>
<ul> if (condition)<br />
code to be executed if condition is true;<br />
elseif (condition)<br />
code to be executed if condition is true;<br />
else<br />
code to be executed if condition is false;</ul>
<ul>
<div class="example">
For eg:</p>
<p>&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;?php<br />
$d=date(&#8221;D&#8221;);        if ($d==&#8221;Fri&#8221;)<br />
echo &#8220;Today is Friday!&#8221;;        elseif ($d==&#8221;Sun&#8221;)<br />
echo &#8220;Today is Sunday!&#8221;;        else<br />
echo &#8220;Today is neither Friday nor Sunday!&#8221;;<br />
?&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></div>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.goweb99.com/blog/php-tutorial/php-if-condition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conditional Statements</title>
		<link>http://www.goweb99.com/blog/php-tutorial/conditional-statements/</link>
		<comments>http://www.goweb99.com/blog/php-tutorial/conditional-statements/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 10:08:36 +0000</pubDate>
		<dc:creator>tutor</dc:creator>
				<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[if statement]]></category>
		<category><![CDATA[if...else]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php if-else]]></category>
		<category><![CDATA[php switch]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[PHP Tuts]]></category>
		<category><![CDATA[switch case]]></category>
		<category><![CDATA[switch statement]]></category>

		<guid isPermaLink="false">http://www.goweb99.com/blog/?p=440</guid>
		<description><![CDATA[Conditional statements are used to evaluate some conditions and perform different actions based on the outcome.
You can use conditional statements in your code to do this.
PHP provides the following conditional statements:

If statement &#8211; execute the piece of code only if a specified condition is true.
if (condition) code to be executed if condition is true;


If&#8230;else statement [...]]]></description>
			<content:encoded><![CDATA[<p>Conditional statements are used to evaluate some conditions and perform different actions based on the outcome.</p>
<p>You can use conditional statements in your code to do this.</p>
<p>PHP provides the following conditional statements:</p>
<ul>
<li>If statement &#8211; execute the piece of code only if a specified condition is true.
<p><span style="color: #808080;">if (condition) code to be executed if condition is true;</span></li>
</ul>
<ul>
<li>If&#8230;else statement – this statement executes a two way condition, where the true part does something else and the false part executes something else.
<p><span style="color: #808080;">if (condition)<br />
code to be executed if condition is true;<br />
else<br />
code to be executed if condition is false;</span></li>
</ul>
<ul>
<li>If&#8230;elseif&#8230;.else statement – if there are multi-way condition, where there are several blocks of code to be executed based on different conditions.
<p><span style="color: #808080;">if (condition)<br />
code to be executed if condition is true;<br />
elseif (condition)<br />
code to be executed if condition is true;<br />
else<br />
code to be executed if condition is false;</span></li>
</ul>
<ul>
<li>Switch statement &#8211; this statement is used to select one of many blocks of code to be executed
<p><span style="color: #808080;">switch (n)<br />
{<br />
case label1:<br />
code to be executed if n=label1;<br />
break;<br />
case label2:<br />
code to be executed if n=label2;<br />
break;<br />
default:<br />
code to be executed if n is different from both label1 and label2;<br />
}</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.goweb99.com/blog/php-tutorial/conditional-statements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Combining Arithmetic &amp; Assignment Operators</title>
		<link>http://www.goweb99.com/blog/php-tutorial/combining-arithmetic-assignment-operators/</link>
		<comments>http://www.goweb99.com/blog/php-tutorial/combining-arithmetic-assignment-operators/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 09:45:21 +0000</pubDate>
		<dc:creator>tutor</dc:creator>
				<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php operators]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[PHP Tuts]]></category>

		<guid isPermaLink="false">http://www.goweb99.com/blog/?p=434</guid>
		<description><![CDATA[We often need to increment a variable by a fixed amount. For eg a variable which is being used to count something, may be a counter for a loop or some other purpose, we need to constantly increment it by 1.
 $count = $count + 1;
However, there is another way for doing this.
 $counter += [...]]]></description>
			<content:encoded><![CDATA[<p>We often need to increment a variable by a fixed amount. For eg a variable which is being used to count something, may be a counter for a loop or some other purpose, we need to constantly increment it by 1.</p>
<ul> $count = $count + 1;</ul>
<p>However, there is another way for doing this.</p>
<ul> $counter += 1;</ul>
<p>This combined assignment/arithmetic operator would accomplish the same task as the above code.</p>
<p>Although this combined operator shortens the code but sometimes for those who are not accustomed to such programming constructs, this may create confusion and may make the code unreadable.0</p>
<ul>
<table border="0" width="100%">
<tbody>
<tr>
<td>Operator</td>
<td>Description</td>
<td>Example</td>
<td>Expanded Form</td>
</tr>
<tr>
<td>+=</td>
<td>Plus Equals</td>
<td>$x += 2;</td>
<td>$x = $x + 2;</td>
</tr>
<tr>
<td>-=</td>
<td>Minus Equals</td>
<td>$x -= 4;</td>
<td>$x = $x &#8211; 4;</td>
</tr>
<tr>
<td>*=</td>
<td>Multiply Equals</td>
<td>$x *= 3;</td>
<td>$x = $x * 3;</td>
</tr>
<tr>
<td>/=</td>
<td>Divide Equals</td>
<td>$x /= 2;</td>
<td>$x = $x / 2;</td>
</tr>
<tr>
<td>%=</td>
<td>Modulo Equals</td>
<td>$x %= 5;</td>
<td>$x = $x % 5;</td>
</tr>
<tr>
<td>.=</td>
<td>Concatenate Equals</td>
<td>$my_str.=&#8221;PHP&#8221;;</td>
<td>$my_str = $my_str .&#8221;PHP&#8221;;</td>
</tr>
</tbody>
</table>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.goweb99.com/blog/php-tutorial/combining-arithmetic-assignment-operators/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using echo</title>
		<link>http://www.goweb99.com/blog/php-tutorial/using-echo/</link>
		<comments>http://www.goweb99.com/blog/php-tutorial/using-echo/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 10:33:57 +0000</pubDate>
		<dc:creator>tutor</dc:creator>
				<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php echo]]></category>
		<category><![CDATA[php strings]]></category>
		<category><![CDATA[PHP Tuts]]></category>

		<guid isPermaLink="false">http://www.goweb99.com/blog/?p=376</guid>
		<description><![CDATA[As we used in previous pages, the PHP command echo is a way to uotput text to the web browser. Echo is the most commonly, and most ofetenly used command while working in PHP
We use echo to output a string. You can either use a variable or the string itself within quotes.
For eg:
&#60;?php
$myString = &#8220;PHP&#8221;;
echo [...]]]></description>
			<content:encoded><![CDATA[<p>As we used in previous pages, the PHP command echo is a way to uotput text to the web browser. Echo is the most commonly, and most ofetenly used command while working in PHP</p>
<p>We use echo to output a string. You can either use a variable or the string itself within quotes.</p>
<div class="example">For eg:</p>
<p>&lt;?php<br />
$myString = &#8220;PHP&#8221;;<br />
echo $myString;<br />
echo &#8220;&lt;h5&gt;PHP is too good!&lt;/h5&gt;&#8221;;<br />
?&gt;</p></div>
<div class="example">
Output:</p>
<p>PHP<br />
PHP is too good!</p></div>
<p>The text that we output through echo is sent to the user in the form of a web page. So we can also use HTML tags inside the echo command,</p>
<p><strong>Careful When Echoing Quotes!</strong></p>
<p>It seems very good to be able to output HTML with PHP. However, you must be careful when using HTML code, when it contains quotes. Echo uses quotes to mark the beginning and end of the string, so you must not use quotes other than at the starting and the ending. If its necessary to use quotes inside echo you must use one of these methods</p>
<p>Use escape sequence to escape your quotes from echo ie just put a backslash directly before the quotation mark, like  \&#8221;</p>
<p>Use single quotes (apostrophes) for quotes inside your string like ‘    ’.</p>
<div class="example">&lt;?php<br />
Echo “&lt;h5 class=”specialH5”&gt;I Love PHP!&lt;/h5&gt;		//doesn’t work<br />
echo &#8220;&lt;h5 class=\&#8221;specialH5\&#8221;&gt;I love using PHP!&lt;/h5&gt;&#8221;;	//works<br />
?&gt;</div>
<p><strong>Echoing Variables</strong></p>
<p>While echoing variables in PHP no quotations are required. They are written directly with echo as:</p>
<div class="example">For eg:</p>
<p>&lt;?php<br />
$my_string = &#8220;PHP is too good  &#8221;;<br />
$my_number = 4;<br />
$my_letter = U;<br />
echo $my_string;<br />
echo $my_number;<br />
echo $my_letter;<br />
?&gt;</p></div>
<div class="example">
Output:</p>
<p>PHP is too good 4U</p></div>
<p><strong>Echoing Variables and Text Strings</strong></p>
<p>You can also place variables inside of double-quoted strings. This tells the PHP interpreter to output the string value of the variable to be printed in the place of the variable.</p>
<div class="example">
For eg:</p>
<p>&lt;?php<br />
$my_string = &#8220;PHP is too good&#8221;;<br />
echo &#8220;$my_string to use &lt;br /&gt;&#8221;;<br />
echo &#8220;PHP is a scripting language $my_string &lt;br /&gt;&#8221;;<br />
echo &#8220;PHP is a scripting language $my_string to use&#8221;;<br />
?&gt;</p></div>
<div class="example">
Output:</p>
<p>PHP is too good to use<br />
PHP is a scripting language PHP is too good<br />
PHP is a scripting language PHP is too good to use</p></div>
<p>Using variables saves time and provide reusability, you don’t need to retype the whole string over and again whenever you want to use it. With variables you can just use the variable whrever theres a need to use the same variable. It makes the code readable.</p>
<p>You should always use double quotes with string variables, as single quotes will not give the value of the string rather it will just print the variable name like</p>
<p>$my_string</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goweb99.com/blog/php-tutorial/using-echo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Comments in PHP</title>
		<link>http://www.goweb99.com/blog/php-tutorial/using-comments-in-php/</link>
		<comments>http://www.goweb99.com/blog/php-tutorial/using-comments-in-php/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 07:22:04 +0000</pubDate>
		<dc:creator>tutor</dc:creator>
				<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php comments]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[PHP Tuts]]></category>

		<guid isPermaLink="false">http://www.goweb99.com/blog/?p=345</guid>
		<description><![CDATA[Comments are used in every programming language for making the code better to understand.
The PHP comment syntax, like other programming language, begins with a special character sequence and all text that appears between the start of the comment and the end will be ignored.
Comments are written to have better readability and understandability of the code. [...]]]></description>
			<content:encoded><![CDATA[<p>Comments are used in every programming language for making the code better to understand.</p>
<p>The PHP comment syntax, like other programming language, begins with a special character sequence and all text that appears between the start of the comment and the end will be ignored.</p>
<p>Comments are written to have better readability and understandability of the code. They provide information about the code, or sometimes omits a part of code which may not be used at present ar for a particular scenario like for testing.</p>
<p>A comment&#8217;s main purpose is to serve as an informative note to you, the web developer or to others who may view your source code.</p>
<p>PHP&#8217;s comments are not displayed to the visitors visiting the website, even if they view the page’s source. The only way to view PHP comments is to open the PHP file for editing. So for this reason, the PHP comments are useful only for the developers, unlike HTML, where the visitor can also view the comments.</p>
<p>PHP Comments is of two types</p>
<ul>
<li>Single line &#8211; // or # followed by the line to be commented out.</li>
<li>Multiple lines &#8211; /*   */ is used to mark the beginning and the end of multiple lined comment.</li>
</ul>
<p><strong>PHP Comment Syntax: Single Line Comment</strong></p>
<p>The single line comment tells the interpreter to ignore everything that occurs on that line to the right of the comment. To do a single line comment type &#8220;//&#8221; or &#8220;#&#8221; and all text to the right will be ignored by PHP interpreter.</p>
<div class="example">For eg:</p>
<p>&lt;?php<br />
echo &#8220;It&#8217;s so good to be here!&#8221;;                    // This will print out It&#8217;s so good to be here!<br />
echo &#8220;&lt;br /&gt;There are comments on this page but you can&#8217;t see them&#8230;!!!&#8221;;<br />
// echo &#8220;This is not for you&#8221;;<br />
// echo &#8220;My name is Tutor!&#8221;;<br />
# echo &#8220;I am the PHP programmer&#8221;;<br />
?&gt;</p></div>
<div class="example">Output:</p>
<p>It&#8217;s so good to be here!<br />
There are comments on this page but you can&#8217;t see them&#8230;!!!</p></div>
<p>Some of our echo statements were not evaluated because we commented them out with the single line comment.</p>
<p>This type of line commenting is often used for quick notes about complex and confusing code or to temporarily remove a line of PHP code, may be for testing.</p>
<p><strong>PHP Comment Syntax: Multiple Line Comment</strong></p>
<p>The multi-line PHP comment can be used to comment out multiple lines of code or writing multiple line comments. The multiple line PHP comment begins with &#8221; /* &#8221; and ends with &#8221; */ &#8220;.</p>
<div class="example">For eg:</p>
<p>&lt;?php<br />
/* This Echo statement will print out my message to the<br />
the place in which I reside on.  In other words, the World. */<br />
echo &#8220;It&#8217;s so good to be here!&#8221;;<br />
/* echo &#8220;My name is Tutor!&#8221;;<br />
echo &#8220;I am the PHP programmer!&#8221;;<br />
*/<br />
?&gt;</p></div>
<div class="example">Output:</p>
<p>It&#8217;s so good to be here!</p></div>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong>Good Commenting Practices</strong></p>
<p>The best commenting practice is to use them, anywhere and everywhere, where there is a need to put some extra detail, so that everyone viewing the code can atleast understand the structure.</p>
<p>Use single line comments for quick notes about a tricky part in your code and use multiple line comments when you need to elaborate on some function or some construct.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goweb99.com/blog/php-tutorial/using-comments-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP &#8211; How to Start With?</title>
		<link>http://www.goweb99.com/blog/php-tutorial/php-syntax/</link>
		<comments>http://www.goweb99.com/blog/php-tutorial/php-syntax/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 06:24:37 +0000</pubDate>
		<dc:creator>tutor</dc:creator>
				<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[PHP Tuts]]></category>

		<guid isPermaLink="false">http://www.goweb99.com/blog/?p=337</guid>
		<description><![CDATA[Every language has some rules to how to write them or all languages has some defined words which must be used to make a meaningful sentence. Like that PHP too has some rules that must be followed to write properly structured code, which could be understood by the PHP interpreter.
PHP is similar to most of [...]]]></description>
			<content:encoded><![CDATA[<p>Every language has some rules to how to write them or all languages has some defined words which must be used to make a meaningful sentence. Like that PHP too has some rules that must be followed to write properly structured code, which could be understood by the PHP interpreter.</p>
<p>PHP is similar to most of the other programming languages (C, Java, and Perl) in syntax and semantics.</p>
<p>All PHP code is contained within a tag. As PHP is less often used stand alone so all the PHP code is written within a tag which marks the beginning and the end of PHP code.</p>
<div class="example">
&lt;?php<br />
//Your PHP code goes here<br />
?&gt;
</div>
<p><strong>Or you can use the shorthand</strong></p>
<div class="example">
&lt;?<br />
//Your PHP code goes here<br />
?&gt;
</div>
<p>However, if you are using multiple scripting languages then you must use the former to avoid confusion and mixing of all the codes.</p>
<p>PHP code written outside this tag will not be interpreted and will be directly displayed on the browser as some jumbles.</p>
<p>A PHP block can be anywhere in your page.</p>
<p>Saving Your PHP Pages</p>
<p>A PHP file is a file with extension &#8220;.php&#8221;, &#8220;.php3&#8243;, or &#8220;.phtml&#8221;. It can be written in any SDI (Single Document Interface) like notepad, and save with any of the three extensions.PHP files can contain text, HTML tags and scripts.</p>
<p>PHP scripts runs on the server, when a browser sends request PHP files are returned to the browser as plain HTML</p>
<p>If you have inserted PHP into your HTML page, then you must save the file with a .php extension, instead of the standard .html extension, then only it will be interpreted as some script otherwise it will be displayed as it is.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goweb99.com/blog/php-tutorial/php-syntax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
