<?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>Vacation Rentals Advertising and Marketing &#187; PHP Tutorials</title>
	<atom:link href="http://www.goweb99.com/blog/tag/php-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.goweb99.com/blog</link>
	<description>Vacation Rentals Solution &#124; Vacation Rentals Websites &#124; Vacation Rentals Network</description>
	<lastBuildDate>Thu, 03 Feb 2011 22:23:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>PHP &#8211; Hypertext Preprocessor</title>
		<link>http://www.goweb99.com/blog/php-tutorial/php-hypertext-preprocessor/</link>
		<comments>http://www.goweb99.com/blog/php-tutorial/php-hypertext-preprocessor/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 12:27:46 +0000</pubDate>
		<dc:creator>tutor</dc:creator>
				<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[Hypertext Preprocessor]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[PHP Tuts]]></category>

		<guid isPermaLink="false">http://www.goweb99.com/blog/?p=334</guid>
		<description><![CDATA[PHP is the common name for Hypertext Preprocessor. The first &#8220;P&#8221; stands for &#8220;PHP,&#8221; and the first &#8220;P&#8221; of that stands for &#8220;PHP&#8221; again, makes it a recursive acronym. PHP originally reffered to as Personal Home Page, but later on renamed as Hypertext Preprocessor when the language was commonly being used on the web, at [...]]]></description>
			<content:encoded><![CDATA[<p>PHP is the common name for Hypertext Preprocessor.<br />
The first &#8220;P&#8221; stands for &#8220;PHP,&#8221; and the first &#8220;P&#8221; of that stands for &#8220;PHP&#8221; again, makes it a recursive acronym.</p>
<p>PHP originally reffered to as Personal Home Page, but later on renamed as Hypertext Preprocessor when the language was commonly being used on the web, at version 3.0.</p>
<p>PHP is a behind the scene scripting language that was originally designed for web development, to produce dynamic and interactive web pages.</p>
<p>It is generally used with HTML and runs on a web server. This web server needs to be configured to process PHP code and create web page content from it. PHP is Open Source and free to use, so it can be deployed on almost all web servers and near about on every operating system and platform.</p>
<p>PHP has evolved to include a command line interface capability and can also be used in standalone graphical applications. PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)<br />
Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in.</p>
<p><strong>What You Should Already Know</strong><br />
PHP learning requires some basic knowledge of<br />
HTML/XHTML<br />
Javascript</p>
<p>Since using PHP for web development will require embedding it into HTML and some JavaScript may be used somewhere here and there. So its better to have some working knowledge of both. If you don’t have then you may learn them in the meantime.</p>
<p><strong>MySQL</strong></p>
<ul>
<li>MySQL is a database server</li>
<li>MySQL is ideal for both small and large applications</li>
<li>MySQL supports standard SQL</li>
<li>MySQL compiles on a number of platforms</li>
<li>MySQL is free to download and use</li>
</ul>
<p><strong><br />
PHP + MySQL</strong></p>
<p>PHP combined with MySQL are cross-platform (you can develop in Windows and serve on a Unix platform)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goweb99.com/blog/php-tutorial/php-hypertext-preprocessor/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>Mon, 09 Aug 2010 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(&#8220;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 [...]]]></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(&#8220;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(&#8220;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(&#8220;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(&#8220;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>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>Mon, 09 Aug 2010 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 [...]]]></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>
		<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>Wed, 04 Aug 2010 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 [...]]]></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.<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.<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.<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<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>Arrays</title>
		<link>http://www.goweb99.com/blog/php-tutorial/arrays/</link>
		<comments>http://www.goweb99.com/blog/php-tutorial/arrays/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 12:28:42 +0000</pubDate>
		<dc:creator>tutor</dc:creator>
				<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[associative array]]></category>
		<category><![CDATA[php array]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[PHP Tuts]]></category>

		<guid isPermaLink="false">http://www.goweb99.com/blog/?p=386</guid>
		<description><![CDATA[An array is a collection of similar type of values. It is a data structure which stores one or more similar type values as a single value. In PHP arrays are actually maps, ie each key is mapped to a value. We are assuming that you have a basic knowledge of programming, so you must [...]]]></description>
			<content:encoded><![CDATA[<p>An array is a collection of similar type of values. It is a data structure which stores one or more similar type values as a single value. In PHP arrays are actually maps, ie each key is mapped to a value.</p>
<p>We are assuming that you have a basic knowledge of programming, so you must be knowing what are arrays.</p>
<p>If you are new to programming, then it may confuse you, as till now one variable can store only one value but this variable can store multiple values.</p>
<p>You may think an array as a container with many spaces where you can fill data according to your choice. Arrays group similar kind of data as it doesn’t make sense to store a set of like values in different variables.</p>
<p>For eg if you want to store your marks of different subject, if you have only 5 subjects then you can store them separately, but if you are having twenty or thirty subjects or even more then it will look very clumsy to use so much variables moreover it will be very tough to manage such number of variables.</p>
<p>You can define array using square brackets as:</p>
<div class="example">$my_array[];</div>
<p>You can assign values to the array elements as:</p>
<div class="example">$marks[0]=20;<br />
$ marks [1]=10;</div>
<p>Araay can be understood using the key / value structure. Keys are the numbers specified in the array and the values are the marks. Each key of an array is associated with a value that we can manipulate and reference.</p>
<p>The general form to set the key of an array equal to a value is:</p>
<div class="example">$array[key] = value;</div>
<p>In other programming language you can only provide integer as the key value for the array but in PHP you can also specify a string as the key. This later type is referred to as Associative array</p>
<p>PHP arrays are mostly used with loops, which we will be discussing soon.</p>
<p>In PHP you have the following types of arrays:</p>
<ul>
<li>Numeric array &#8211; An array with a numeric index</li>
<li>Associative array &#8211; An array where each ID key is associated with a value</li>
<li>Multidimensional array &#8211; An array containing one or more arrays</li>
</ul>
<p><strong>Numeric Arrays</strong></p>
<p>A numeric array is the most common type of array, which stores each array element with a numeric index. This kind of array is found in all programming languages.</p>
<p>There are two methods to create a numeric array.</p>
<ol>
<li>In the following example the index are automatically assigned (the index starts at 0)&lt;$marks=array(20,10,30,40)</li>
<li>In the following example we assign the index manually:$marks[0]=20;<br />
$ marks [1]=10;<br />
$ marks[2]=30;<br />
$ marks [3]=40;</li>
</ol>
<p><strong>Associative Arrays</strong></p>
<p>In an associative array the key used is a string value. We have already seen how you can store the marks of the subjects you studied till now using an array. But there was a slight problem, you will not be able to distinguish which mark is for which subject unless you write it somewhere that which key value stands for which subject. This is extra information you will have to manage somewhere outside your program. Rather if there have been a way to store them together then it will lessen your burden.</p>
<p>Associative array is such a way. The key values of this array are strings.</p>
<p>$marks[“Physics”]=20;<br />
$marks[“Chemistry”]=30;<br />
$marks[“Biology”]=40;<br />
$marks[“Maths”]=60;</p>
<p><strong>Multidimensional Arrays</strong></p>
<p>A multidimensional array is an array of arrays. In a multidimensional array, each element in the main array is also be an array. And each element in the sub-array can be an array, and so on.</p>
<p>$families = array  (&#8220;Fruit&#8221;=&gt;array	(&#8220;Mango&#8221;,&#8221;Apple&#8221;,&#8221;Strawberry&#8221;),<br />
&#8220;Animals&#8221;=&gt;array	(&#8220;Lion&#8221;,&#8221;Tiger&#8221;),<br />
&#8220;Birds&#8221;=&gt;array	(&#8220;Eagle&#8221;,&#8221;Peacock&#8221;,&#8221;Penguin&#8221;)<br />
);</p>
<p>The arrays and sub-arrays can be referred to as</p>
<p>$families['Fruit'][2]  will refer to Strawberry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goweb99.com/blog/php-tutorial/arrays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with String variables</title>
		<link>http://www.goweb99.com/blog/php-tutorial/working-with-string-variables/</link>
		<comments>http://www.goweb99.com/blog/php-tutorial/working-with-string-variables/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 11:41:26 +0000</pubDate>
		<dc:creator>tutor</dc:creator>
				<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[php strings]]></category>
		<category><![CDATA[php strlen() function]]></category>
		<category><![CDATA[php strpos() function]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[PHP Tuts]]></category>

		<guid isPermaLink="false">http://www.goweb99.com/blog/?p=382</guid>
		<description><![CDATA[A string variable is used to store and manipulate character strings. PHP provides some pre defined functions to manipulate string variables. There are someoperators also which directly work on strings. For eg: &#60;?php $txt=&#8221;Its PHP&#8221;; echo $txt; ?&#62; Output: Its PHP We can use strings directly within double quotes or we can assign them to [...]]]></description>
			<content:encoded><![CDATA[<p>A string variable is used to store and manipulate character strings.</p>
<p>PHP provides some pre defined functions to manipulate string variables. There are someoperators also which directly work on strings.</p>
<div class="example">For eg:</p>
<p>&lt;?php<br />
$txt=&#8221;Its PHP&#8221;;<br />
echo $txt;<br />
?&gt;</p></div>
<div class="example">Output:</p>
<p>Its PHP</p></div>
<p>We can use strings directly within double quotes or we can assign them to some variable and can use them through variables.</p>
<p><strong>The Concatenation Operator</strong></p>
<p>PHP provides an operator to manipulate string variables directly. This is called the concatenation operator represented by a “.” (dot).<br />
The concatenation operator (.), as the name implies, concatenates two strings, ie it joins two or more strings.</p>
<div class="example">For eg:</p>
<p>&lt;?php<br />
$txt1=&#8221;Its PHP!&#8221;;<br />
$txt2=&#8221; So easy to use!&#8221;;<br />
echo $txt1 . $txt2;<br />
?&gt;</p></div>
<div class="example">Output:</p>
<p>Its PHP! So easy to use!</p></div>
<p><strong>The strlen() function</strong></p>
<p>Like in other languages PHP defines the strlen() function, which returns the length of a string.</p>
<div class="example">For eg:</p>
<p>&lt;?php<br />
echo strlen(&#8220;Its PHP!&#8221;);<br />
?&gt;</p></div>
<div class="example">Output:</p>
<p>8</p></div>
<p>This function can be useful in various string operations like matching two strings or finding some string in a large text where the loop counter should iterate till the last character of the text only. Various other applications can also use this function.</p>
<p><strong>The strpos() function</strong></p>
<p>The strpos() function searches a given character within a string.</p>
<p>If the character is found, this function will return the position of the first match. If no match is found, it will return FALSE.</p>
<div class="example">For eg:</p>
<p>&lt;?php<br />
echo strpos(&#8220;Its PHP!&#8221;,&#8221;PHP&#8221;);<br />
?&gt;</p></div>
<div class="example">Output:</p>
<p>4</p></div>
<p>The position of the string &#8220;world&#8221; is 6, as the counter starts from 0.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goweb99.com/blog/php-tutorial/working-with-string-variables/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>Tue, 03 Aug 2010 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>PHP Variables</title>
		<link>http://www.goweb99.com/blog/php-tutorial/php-variables/</link>
		<comments>http://www.goweb99.com/blog/php-tutorial/php-variables/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 08:58:50 +0000</pubDate>
		<dc:creator>tutor</dc:creator>
				<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[PHP Tuts]]></category>
		<category><![CDATA[php variables]]></category>
		<category><![CDATA[whitespace in php]]></category>

		<guid isPermaLink="false">http://www.goweb99.com/blog/?p=371</guid>
		<description><![CDATA[A variable is something whose value can be changing, or the other way round, a variable is used to store some values which are not constant. These values can be anything, like string, any integer value etc. After declaring a variable you can use it again and again in your script. Variables are declared using [...]]]></description>
			<content:encoded><![CDATA[<p>A variable is something whose value can be changing, or the other way round, a variable is used to store some values which are not constant. These values can be anything, like string, any integer value etc.</p>
<p>After declaring a variable you can use it again and again in your script.</p>
<p>Variables are declared using a $ sign. In PHP variables are typed according to the value they contain, so we don’t write any type specifier while declaring a variable.</p>
<ul> $var_name = value;</ul>
<p>If you forget putting a dollar sign before the name of a variable, it won’t work in PHP</p>
<p>PHP is a Loosely Typed Language.It internally converts a variable to the same type as the data type of its value. You can declare a variable only when you need one. No previous declaration is needed.</p>
<p><strong>Naming Rules for Variables</strong></p>
<p>PHP has variable declaration rules similar to other programming languages:</p>
<ul>
<li>variable name can only start with a letter or an underscore &#8220;_&#8221;</li>
<li>variable name can only contain alpha-numeric characters and underscores (a-z, A-Z, 0-9, and _ )</li>
<li>variable name can not have spaces. If a variable name is of more than one word, it should be separated with an underscore, or with capitalization<br />
like   “$my_string”  or   “$myString”</li>
</ul>
<p>Like other programming languages, variable names in PHP also are case-sensitive, so be sure to use the exact capitalization when using a variable. The variables $a_number and $A_number are different variables in PHP.</p>
<p><strong>White Space</strong></p>
<p>Like HTML, whitespaces are ignored in PHP. You can put any number of whitespaces may be to properly indent your code, and all the whitespaces will be ignored by the PHP interpreter.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goweb99.com/blog/php-tutorial/php-variables/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>Tue, 03 Aug 2010 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 [...]]]></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>
	</channel>
</rss>

