<?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 Tutorial</title>
	<atom:link href="http://www.goweb99.com/blog/tag/php-tutorial/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 Operators</title>
		<link>http://www.goweb99.com/blog/php-tutorial/php-operators/</link>
		<comments>http://www.goweb99.com/blog/php-tutorial/php-operators/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 08:04:15 +0000</pubDate>
		<dc:creator>tutor</dc:creator>
				<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[php arithmetic]]></category>
		<category><![CDATA[php assignment]]></category>
		<category><![CDATA[php comparison]]></category>
		<category><![CDATA[php operators]]></category>
		<category><![CDATA[php string operator]]></category>
		<category><![CDATA[PHP Tuts]]></category>

		<guid isPermaLink="false">http://www.goweb99.com/blog/?p=412</guid>
		<description><![CDATA[Operators are used to manipulate the values or directly or to operate on variables to manipulate values.
All the operators are categorized under the following:

Assignment Operators
Arithmetic Operators
Comparison Operators
String Operators

This section lists the different operators available in PHP.
Assignment Operators
Assignment operators assign a value to a variable, or the value of a variable to another variable.
$my_var = 4;
$another_var [...]]]></description>
			<content:encoded><![CDATA[<p>Operators are used to manipulate the values or directly or to operate on variables to manipulate values.</p>
<p>All the operators are categorized under the following:</p>
<ul>
<li>Assignment Operators</li>
<li>Arithmetic Operators</li>
<li>Comparison Operators</li>
<li>String Operators</li>
</ul>
<p>This section lists the different operators available in PHP.</p>
<p><strong>Assignment Operators</strong></p>
<p>Assignment operators assign a value to a variable, or the value of a variable to another variable.</p>
<div class="example">$my_var = 4;<br />
$another_var = $my_var;</div>
<p>Now both $my_var and $another_var contain the value 4.</p>
<p>Assignments can also be used in conjunction with arithmetic operators, which we will be studying later in this tutorial.</p>
<p><strong>Arithmetic Operators</strong></p>
<ul>
<table border="0" cellspacing="0" cellpadding="5" width="100%">
<tbody>
<tr>
<td><strong>Operator</strong></td>
<td><strong>Description</strong></td>
<td><strong>Example</strong></td>
</tr>
<tr>
<td>+</td>
<td>Addition</td>
<td>2 + 4</td>
</tr>
<tr>
<td>-</td>
<td>Subtraction</td>
<td>6-2</td>
</tr>
<tr>
<td>*</td>
<td>Multiplication</td>
<td>5*3</td>
</tr>
<tr>
<td>/</td>
<td>Division</td>
<td>15/3</td>
</tr>
<tr>
<td>%</td>
<td>Modulus</td>
<td>43%10</td>
</tr>
</tbody>
</table>
</ul>
<div class="example">$addition= 2+3;<br />
$subtraction= 3-2;<br />
$multiplication= 2*3;<br />
$division= 22/11;<br />
$modulus = 5 % 2;</div>
<p><strong>Comparison Operators</strong></p>
<p>Comparison Operators are used to compare the values of two operators. These operators are used inside conditional statements and evaluate to either true or false. PHP provides all the comparison operators that are provided by other programming language.<br />
Assume: $x = 4 and $y = 5;</p>
<ul>
<table border="0" cellspacing="0" cellpadding="5" width="100%">
<tbody>
<tr>
<td><strong>Operator</strong></td>
<td><strong>Description</strong></td>
<td><strong>Example</strong></td>
<td><strong>Result</strong></td>
</tr>
<tr>
<td>==</td>
<td>Equal To</td>
<td>$x == $y</td>
<td>false</td>
</tr>
<tr>
<td>!=</td>
<td>Not Equal To</td>
<td>$x != $y</td>
<td>true</td>
</tr>
<tr>
<td>&lt;</td>
<td>Less Than</td>
<td>$x &lt; $y</td>
<td>true</td>
</tr>
<tr>
<td>&gt;</td>
<td>Greater Than</td>
<td>$x &gt; $y</td>
<td>false</td>
</tr>
<tr>
<td>&lt;=</td>
<td>Less Than or Equal To</td>
<td>$x &lt;= $y</td>
<td>true</td>
</tr>
<tr>
<td>&gt;=</td>
<td>Greater Than or Equal To</td>
<td>$x &gt;= $y</td>
<td>false</td>
</tr>
</tbody>
</table>
</ul>
<p><strong>String Operators</strong></p>
<p>As we have learned before the dot operator is used to concatenate or join two strings.</p>
<div class="example">$a_string=”Hello”;<br />
$b_string=”  Tutor”;<br />
$new_string=$a_string . $_string;<br />
Echo $new_string;</div>
<div class="example">Output</p>
<p>Hello Tutor</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.goweb99.com/blog/php-tutorial/php-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>Embedding PHP in HTML</title>
		<link>http://www.goweb99.com/blog/php-tutorial/embedding-php-in-html/</link>
		<comments>http://www.goweb99.com/blog/php-tutorial/embedding-php-in-html/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 07:54:58 +0000</pubDate>
		<dc:creator>tutor</dc:creator>
				<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[PHP in HTML]]></category>
		<category><![CDATA[PHP Tuts]]></category>

		<guid isPermaLink="false">http://www.goweb99.com/blog/?p=355</guid>
		<description><![CDATA[PHP is almost always used with HTML. PHP scripts are embedded inside HTML pages anywhere in the body section.
A simple HTML page with PHP scripts looks like this:
&#60;html&#62;
&#60;head&#62;
&#60;title&#62; Embedding PHP in HTML&#60;/title&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;?php
echo ”It&#8217;s so good to be here!!!”;
?&#62;
&#60;/body&#62;
&#60;/html&#62;
Output:
It&#8217;s so good to be here!!!
Echo is a PHP command to output string on the web page.
Echo is [...]]]></description>
			<content:encoded><![CDATA[<p>PHP is almost always used with HTML. PHP scripts are embedded inside HTML pages anywhere in the body section.</p>
<p>A simple HTML page with PHP scripts looks like this:</p>
<div class="example">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt; Embedding PHP in HTML&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;?php<br />
echo ”It&#8217;s so good to be here!!!”;<br />
?&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</div>
<div class="example">Output:</p>
<p>It&#8217;s so good to be here!!!</p></div>
<p>Echo is a PHP command to output string on the web page.<br />
Echo is a vast topic so we will be discussing it later in this tutorial.</p>
<p><strong>The Semicolon</strong></p>
<p>Each line of PHP code ends with a semicolon. Semicolon is the PHP delimiter.</p>
<p>PHP will show an error if the semicolon is missed in any line.</p>
<p>echo ”It&#8217;s so good to be here!!!”;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goweb99.com/blog/php-tutorial/embedding-php-in-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
