<?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>Daniel Dumas &#187; PHP</title>
	<atom:link href="http://danieldumas.com/category/php/feed" rel="self" type="application/rss+xml" />
	<link>http://danieldumas.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 04 Aug 2010 11:02:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>PHP Operators: The === Operator</title>
		<link>http://danieldumas.com/php-operators-the-triple-equals-operator.php</link>
		<comments>http://danieldumas.com/php-operators-the-triple-equals-operator.php#comments</comments>
		<pubDate>Thu, 05 Mar 2009 02:17:12 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Tutorials]]></category>

		<guid isPermaLink="false">http://danieldumas.com/?p=700</guid>
		<description><![CDATA[PHP&#8217;s === Operator enables you to compare or test variables for both equality and type. Refer below for example.

&#60;?php
//define variables..
$str = '9';
$int = 9;

//Returns true since both variable contains the same value..
$res = ($str==$int);

//Returns false since the two variables are not of the same type..
$res = ($str===$int);
?&#62;





		
			Share this on Facebook
		
		
			Subscribe to the comments for this [...]]]></description>
			<content:encoded><![CDATA[<p><strong>PHP&#8217;s === Operator </strong>enables you to compare or test variables for both equality and type. Refer below for example.</p>
<pre name="code" class="php">
&lt;?php
//define variables..
$str = '9';
$int = 9;

//Returns true since both variable contains the same value..
$res = ($str==$int);

//Returns false since the two variables are not of the same type..
$res = ($str===$int);
?&gt;
</pre>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://danieldumas.com/php-operators-the-triple-equals-operator.php&amp;t=PHP+Operators%3A+The+%3D%3D%3D+Operator" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://danieldumas.com/php-operators-the-triple-equals-operator.php&amp;feed=comments-rss2" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://danieldumas.com/php-operators-the-triple-equals-operator.php&amp;title=PHP+Operators%3A+The+%3D%3D%3D+Operator" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://danieldumas.com/php-operators-the-triple-equals-operator.php&amp;title=PHP+Operators%3A+The+%3D%3D%3D+Operator" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://danieldumas.com/php-operators-the-triple-equals-operator.php&amp;title=PHP+Operators%3A+The+%3D%3D%3D+Operator&amp;srcUrl=http://danieldumas.com/php-operators-the-triple-equals-operator.php&amp;srcTitle=PHP+Operators%3A+The+%3D%3D%3D+Operator&amp;snippet=PHP%27s%20%3D%3D%3D%20Operator%20enables%20you%20to%20compare%20or%20test%20variables%20for%20both%20equality%20and%20type.%20Refer%20below%20for%20example.%0A%0A%26lt%3B%3Fphp%0A%2F%2Fdefine%20variables..%0A%24str%20%3D%20%279%27%3B%0A%24int%20%3D%209%3B%0A%0A%2F%2FReturns%20true%20since%20both%20variable%20contains%20the%20same%20value..%0A%24res%20%3D%20%28%24str%3D%3D%24int%29%3B%0A%0A%2F%2FReturns%20false%20since%20the%20two%20variables%20are%20not%20of" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://danieldumas.com/php-operators-the-triple-equals-operator.php&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://danieldumas.com/php-operators-the-triple-equals-operator.php&amp;title=PHP+Operators%3A+The+%3D%3D%3D+Operator" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://danieldumas.com/php-operators-the-triple-equals-operator.php&amp;title=PHP+Operators%3A+The+%3D%3D%3D+Operator" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://danieldumas.com/php-operators-the-triple-equals-operator.php" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PHP+Operators%3A+The+%3D%3D%3D+Operator+-+http://b2l.me/ah3ha8&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://danieldumas.com/php-operators-the-triple-equals-operator.php&amp;submitHeadline=PHP+Operators%3A+The+%3D%3D%3D+Operator&amp;submitSummary=PHP%27s%20%3D%3D%3D%20Operator%20enables%20you%20to%20compare%20or%20test%20variables%20for%20both%20equality%20and%20type.%20Refer%20below%20for%20example.%0A%0A%26lt%3B%3Fphp%0A%2F%2Fdefine%20variables..%0A%24str%20%3D%20%279%27%3B%0A%24int%20%3D%209%3B%0A%0A%2F%2FReturns%20true%20since%20both%20variable%20contains%20the%20same%20value..%0A%24res%20%3D%20%28%24str%3D%3D%24int%29%3B%0A%0A%2F%2FReturns%20false%20since%20the%20two%20variables%20are%20not%20of&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdanieldumas.com%2Fphp-operators-the-triple-equals-operator.php&amp;t=PHP+Operators%3A+The+%3D%3D%3D+Operator" rel="nofollow" class="external" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-yahoomail">
			<a href="http://compose.mail.yahoo.com/?Subject=PHP+Operators%3A+The+%3D%3D%3D+Operator&amp;body=Link: http://danieldumas.com/php-operators-the-triple-equals-operator.php (sent via shareaholic)%0D%0A%0D%0A----%0D%0A PHP%27s%20%3D%3D%3D%20Operator%20enables%20you%20to%20compare%20or%20test%20variables%20for%20both%20equality%20and%20type.%20Refer%20below%20for%20example.%0A%0A%26lt%3B%3Fphp%0A%2F%2Fdefine%20variables..%0A%24str%20%3D%20%279%27%3B%0A%24int%20%3D%209%3B%0A%0A%2F%2FReturns%20true%20since%20both%20variable%20contains%20the%20same%20value..%0A%24res%20%3D%20%28%24str%3D%3D%24int%29%3B%0A%0A%2F%2FReturns%20false%20since%20the%20two%20variables%20are%20not%20of" rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://danieldumas.com/php-operators-the-triple-equals-operator.php/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>PHP Operators : Using Comparison Operators</title>
		<link>http://danieldumas.com/php-operators-using-comparison-operators.php</link>
		<comments>http://danieldumas.com/php-operators-using-comparison-operators.php#comments</comments>
		<pubDate>Tue, 03 Mar 2009 17:28:06 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Tutorials]]></category>

		<guid isPermaLink="false">http://danieldumas.com/?p=686</guid>
		<description><![CDATA[To compare php variables to determine whether they are the same or different.. you can use PHP Comparison Operators. See below for a list of examples..
I. Define the Variables

&#60;?php
$num1 = 9;
$num2 = 9;
$num3 = 22;
?&#62;

A. The Less Than Operator

&#60;?php
//Returns true if variable in the left side is less than the right..
$res = ($num1 &#60; $num3);
//returns [...]]]></description>
			<content:encoded><![CDATA[<p>To compare php variables to determine whether they are the same or different.. you can use <strong>PHP Comparison Operators. </strong>See below for a list of examples..</p>
<p><strong>I. Define the Variables</strong></p>
<pre name="code" class="php">
&lt;?php
$num1 = 9;
$num2 = 9;
$num3 = 22;
?&gt;
</pre>
<p><strong>A. The Less Than Operator</strong></p>
<pre name="code" class="php">
&lt;?php
//Returns true if variable in the left side is less than the right..
$res = ($num1 &lt; $num3);
//returns true..
?&gt;
</pre>
<p><span id="more-686"></span></p>
<p><strong>B. The Greater Than Operator</strong></p>
<pre name="code" class="php">
&lt;?php
//Returns true if the variable in left side is greater that the right..
$res = ($num3 &gt; $num1);
//returns true..
?&gt;
</pre>
<p><strong>C. The Less Than or Equal-to Operator</strong></p>
<pre name="code" class="php">
&lt;?php
//returns true if variable on left is less than or equal to right..
$res = ($num3 &lt;= $num1);
//returns false
?&gt;
</pre>
<p><strong>D. The Greater Than or Equal-to Operator</strong></p>
<pre name="code" class="php">
&lt;?php
//returns true if variable on left is greater than or equal to right..
$res = ($num3 &gt;= $num2);
//returns true..
?&gt;
</pre>
<p><strong>E. The Equality Operator</strong></p>
<pre name="code" class="php">
&lt;?php
//returns true if both variables are equal to each other
$res = ($num1 == $num2);
//returns true..
?&gt;
</pre>
<p><strong>F. The Not Equal-to Operator<br />
</strong></p>
<pre name="code" class="php">
&lt;?php
//returns true if the variable on left is not equal to right
$res = ($num1 != $num2);
//returns false..
?&gt;
</pre>
<p><strong>G. The Inequality Operator</strong></p>
<pre name="code" class="php">
&lt;?php
//returns true if the variable on left is not equal to right..
$res = ($num1 &lt;&gt; $num2);
//returns false..
?&gt;
</pre>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://danieldumas.com/php-operators-using-comparison-operators.php&amp;t=PHP+Operators+%3A+Using+Comparison+Operators" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://danieldumas.com/php-operators-using-comparison-operators.php&amp;feed=comments-rss2" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://danieldumas.com/php-operators-using-comparison-operators.php&amp;title=PHP+Operators+%3A+Using+Comparison+Operators" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://danieldumas.com/php-operators-using-comparison-operators.php&amp;title=PHP+Operators+%3A+Using+Comparison+Operators" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://danieldumas.com/php-operators-using-comparison-operators.php&amp;title=PHP+Operators+%3A+Using+Comparison+Operators&amp;srcUrl=http://danieldumas.com/php-operators-using-comparison-operators.php&amp;srcTitle=PHP+Operators+%3A+Using+Comparison+Operators&amp;snippet=To%20compare%20php%20variables%20to%20determine%20whether%20they%20are%20the%20same%20or%20different..%20you%20can%20use%20PHP%20Comparison%20Operators.%20See%20below%20for%20a%20list%20of%20examples..%0A%0AI.%20Define%20the%20Variables%0A%0A%26lt%3B%3Fphp%0A%24num1%20%3D%209%3B%0A%24num2%20%3D%209%3B%0A%24num3%20%3D%2022%3B%0A%3F%26gt%3B%0A%0AA.%20The%20Less%20Than%20Operator%0A%0A%26lt%3B%3Fphp%0A%2F%2FReturns%20true%20if%20variable%20in%20the%20le" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://danieldumas.com/php-operators-using-comparison-operators.php&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://danieldumas.com/php-operators-using-comparison-operators.php&amp;title=PHP+Operators+%3A+Using+Comparison+Operators" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://danieldumas.com/php-operators-using-comparison-operators.php&amp;title=PHP+Operators+%3A+Using+Comparison+Operators" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://danieldumas.com/php-operators-using-comparison-operators.php" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PHP+Operators+%3A+Using+Comparison+Operators+-+http://b2l.me/ah3hba&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://danieldumas.com/php-operators-using-comparison-operators.php&amp;submitHeadline=PHP+Operators+%3A+Using+Comparison+Operators&amp;submitSummary=To%20compare%20php%20variables%20to%20determine%20whether%20they%20are%20the%20same%20or%20different..%20you%20can%20use%20PHP%20Comparison%20Operators.%20See%20below%20for%20a%20list%20of%20examples..%0A%0AI.%20Define%20the%20Variables%0A%0A%26lt%3B%3Fphp%0A%24num1%20%3D%209%3B%0A%24num2%20%3D%209%3B%0A%24num3%20%3D%2022%3B%0A%3F%26gt%3B%0A%0AA.%20The%20Less%20Than%20Operator%0A%0A%26lt%3B%3Fphp%0A%2F%2FReturns%20true%20if%20variable%20in%20the%20le&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdanieldumas.com%2Fphp-operators-using-comparison-operators.php&amp;t=PHP+Operators+%3A+Using+Comparison+Operators" rel="nofollow" class="external" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-yahoomail">
			<a href="http://compose.mail.yahoo.com/?Subject=PHP+Operators+%3A+Using+Comparison+Operators&amp;body=Link: http://danieldumas.com/php-operators-using-comparison-operators.php (sent via shareaholic)%0D%0A%0D%0A----%0D%0A To%20compare%20php%20variables%20to%20determine%20whether%20they%20are%20the%20same%20or%20different..%20you%20can%20use%20PHP%20Comparison%20Operators.%20See%20below%20for%20a%20list%20of%20examples..%0A%0AI.%20Define%20the%20Variables%0A%0A%26lt%3B%3Fphp%0A%24num1%20%3D%209%3B%0A%24num2%20%3D%209%3B%0A%24num3%20%3D%2022%3B%0A%3F%26gt%3B%0A%0AA.%20The%20Less%20Than%20Operator%0A%0A%26lt%3B%3Fphp%0A%2F%2FReturns%20true%20if%20variable%20in%20the%20le" rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://danieldumas.com/php-operators-using-comparison-operators.php/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>PHP Operators:  Using String Concatenation Operator</title>
		<link>http://danieldumas.com/php-operators-using-string-concatenation-operators.php</link>
		<comments>http://danieldumas.com/php-operators-using-string-concatenation-operators.php#comments</comments>
		<pubDate>Sun, 18 Jan 2009 23:03:36 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Tutorials]]></category>

		<guid isPermaLink="false">http://danieldumas.com/?p=682</guid>
		<description><![CDATA[You can concatenate or add strings together using the PHP string concatenation operator represented by the period sign ( . ). refer to the examples below.

&#60;?php
// intialize variables
$username = "daniel";
$domain = "danieldumas.com";

// the variable string $username and $domain can be combine using the concatenation operator
$email_address = $username . '@'. $domain;

//the variable $email_address now contains the [...]]]></description>
			<content:encoded><![CDATA[<p>You can concatenate or add strings together using the <strong>PHP string concatenation operator </strong>represented by the period sign ( . ). refer to the examples below.</p>
<pre name="code" class="php">
&lt;?php
// intialize variables
$username = "daniel";
$domain = "danieldumas.com";

// the variable string $username and $domain can be combine using the concatenation operator
$email_address = $username . '@'. $domain;

//the variable $email_address now contains the value "daniel@danieldumas.com"

?&gt;
</pre>
<p>You can also concatenate simultaneously. .<span id="more-682"></span></p>
<pre name="code" class="php">
&lt;?php

$name = "dan";

//add and assign values to the string $name..

$name .= "iel";

//the variable $name now contains "daniel"

?&gt;
</pre>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://danieldumas.com/php-operators-using-string-concatenation-operators.php&amp;t=PHP+Operators%3A++Using+String+Concatenation+Operator" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://danieldumas.com/php-operators-using-string-concatenation-operators.php&amp;feed=comments-rss2" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://danieldumas.com/php-operators-using-string-concatenation-operators.php&amp;title=PHP+Operators%3A++Using+String+Concatenation+Operator" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://danieldumas.com/php-operators-using-string-concatenation-operators.php&amp;title=PHP+Operators%3A++Using+String+Concatenation+Operator" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://danieldumas.com/php-operators-using-string-concatenation-operators.php&amp;title=PHP+Operators%3A++Using+String+Concatenation+Operator&amp;srcUrl=http://danieldumas.com/php-operators-using-string-concatenation-operators.php&amp;srcTitle=PHP+Operators%3A++Using+String+Concatenation+Operator&amp;snippet=You%20can%20concatenate%20or%20add%20strings%20together%20using%20the%20PHP%20string%20concatenation%20operator%20represented%20by%20the%20period%20sign%20%28%20.%20%29.%20refer%20to%20the%20examples%20below.%0A%0A%0A%26lt%3B%3Fphp%0A%2F%2F%20intialize%20variables%0A%24username%20%3D%20%22daniel%22%3B%0A%24domain%20%3D%20%22danieldumas.com%22%3B%0A%0A%2F%2F%20the%20variable%20string%20%24username%20and%20%24domain%20can%20be%20combine" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://danieldumas.com/php-operators-using-string-concatenation-operators.php&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://danieldumas.com/php-operators-using-string-concatenation-operators.php&amp;title=PHP+Operators%3A++Using+String+Concatenation+Operator" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://danieldumas.com/php-operators-using-string-concatenation-operators.php&amp;title=PHP+Operators%3A++Using+String+Concatenation+Operator" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://danieldumas.com/php-operators-using-string-concatenation-operators.php" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PHP+Operators%3A++Using+String+Concatenation+Operator+-+http://b2l.me/ah3hbf&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://danieldumas.com/php-operators-using-string-concatenation-operators.php&amp;submitHeadline=PHP+Operators%3A++Using+String+Concatenation+Operator&amp;submitSummary=You%20can%20concatenate%20or%20add%20strings%20together%20using%20the%20PHP%20string%20concatenation%20operator%20represented%20by%20the%20period%20sign%20%28%20.%20%29.%20refer%20to%20the%20examples%20below.%0A%0A%0A%26lt%3B%3Fphp%0A%2F%2F%20intialize%20variables%0A%24username%20%3D%20%22daniel%22%3B%0A%24domain%20%3D%20%22danieldumas.com%22%3B%0A%0A%2F%2F%20the%20variable%20string%20%24username%20and%20%24domain%20can%20be%20combine&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdanieldumas.com%2Fphp-operators-using-string-concatenation-operators.php&amp;t=PHP+Operators%3A++Using+String+Concatenation+Operator" rel="nofollow" class="external" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-yahoomail">
			<a href="http://compose.mail.yahoo.com/?Subject=PHP+Operators%3A++Using+String+Concatenation+Operator&amp;body=Link: http://danieldumas.com/php-operators-using-string-concatenation-operators.php (sent via shareaholic)%0D%0A%0D%0A----%0D%0A You%20can%20concatenate%20or%20add%20strings%20together%20using%20the%20PHP%20string%20concatenation%20operator%20represented%20by%20the%20period%20sign%20%28%20.%20%29.%20refer%20to%20the%20examples%20below.%0A%0A%0A%26lt%3B%3Fphp%0A%2F%2F%20intialize%20variables%0A%24username%20%3D%20%22daniel%22%3B%0A%24domain%20%3D%20%22danieldumas.com%22%3B%0A%0A%2F%2F%20the%20variable%20string%20%24username%20and%20%24domain%20can%20be%20combine" rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://danieldumas.com/php-operators-using-string-concatenation-operators.php/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>PHP Operators : Using Arithmetic Operators</title>
		<link>http://danieldumas.com/php-operators-using-arithmetic-operators.php</link>
		<comments>http://danieldumas.com/php-operators-using-arithmetic-operators.php#comments</comments>
		<pubDate>Sun, 04 Jan 2009 12:37:38 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Tutorials]]></category>

		<guid isPermaLink="false">http://danieldumas.com/?p=673</guid>
		<description><![CDATA[Using Arithmetic Operators in PHP you can perform mathematical operations on PHP variables. refer to the example below.
Using PHP Arithmetic Operator
//define variables
&#60;?php

$num1 = 50;
$num2 = 30;

//Addition
$sum = $num1 + $num2;

//Subtraction
$difference = $num1 - $num2;

//Multiplication
$product = $num1*$num2;

//Division
$quotient = $num1 / $num2;

//Modulus
$remainder = $num1 % $num2;

?&#62;
you may also use the shorthand using the PHP Assignment Operator and [...]]]></description>
			<content:encoded><![CDATA[<p>Using <strong>Arithmetic Operators in PHP </strong>you can perform mathematical operations on <strong>PHP variables</strong>. refer to the example below.</p>
<h3>Using PHP Arithmetic Operator</h3>
<pre class="php" name="code">//define variables
&lt;?php

$num1 = 50;
$num2 = 30;

//Addition
$sum = $num1 + $num2;

//Subtraction
$difference = $num1 - $num2;

//Multiplication
$product = $num1*$num2;

//Division
$quotient = $num1 / $num2;

//Modulus
$remainder = $num1 % $num2;

?&gt;</pre>
<p>you may also use the shorthand using the <strong>PHP Assignment Operator and Arithmetic Operator </strong>together.<span id="more-673"></span></p>
<h3>PHP Assignment Operator and Arithmetic Operator Together</h3>
<pre class="php" name="code">//define variables

&lt; ?php

$num1 = 50;
$num2 = 30;

//Addition
$num1 = $num1+ $num2;
//Shorthand for this is..
$num1+=$num2;

//Subtraction
$num1 = $num1 - $num2;
//Shorthand for this is..
$num1-=$num2;

//Multiplication
$num1 = $num1 * $num2;
//Shorthand for this is..
$num1 *=$num2;

//Division
$num1 = $num1 / $num2;
//Shorthand for this is..
$num1 /=$num2;

//Modulus
$num1= $num1 % $num2;
//Shorthand for this is..
$num1%=$num2;

?&gt;</pre>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://danieldumas.com/php-operators-using-arithmetic-operators.php&amp;t=PHP+Operators+%3A+Using+Arithmetic+Operators" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://danieldumas.com/php-operators-using-arithmetic-operators.php&amp;feed=comments-rss2" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://danieldumas.com/php-operators-using-arithmetic-operators.php&amp;title=PHP+Operators+%3A+Using+Arithmetic+Operators" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://danieldumas.com/php-operators-using-arithmetic-operators.php&amp;title=PHP+Operators+%3A+Using+Arithmetic+Operators" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://danieldumas.com/php-operators-using-arithmetic-operators.php&amp;title=PHP+Operators+%3A+Using+Arithmetic+Operators&amp;srcUrl=http://danieldumas.com/php-operators-using-arithmetic-operators.php&amp;srcTitle=PHP+Operators+%3A+Using+Arithmetic+Operators&amp;snippet=Using%20Arithmetic%20Operators%20in%20PHP%20you%20can%20perform%20mathematical%20operations%20on%20PHP%20variables.%20refer%20to%20the%20example%20below.%0AUsing%20PHP%20Arithmetic%20Operator%0A%2F%2Fdefine%20variables%0A%26lt%3B%3Fphp%0A%0A%24num1%20%3D%2050%3B%0A%24num2%20%3D%2030%3B%0A%0A%2F%2FAddition%0A%24sum%20%3D%20%24num1%20%2B%20%24num2%3B%0A%0A%2F%2FSubtraction%0A%24difference%20%3D%20%24num1%20-%20%24num2%3B%0A%0A%2F%2FMultiplication%0A%24" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://danieldumas.com/php-operators-using-arithmetic-operators.php&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://danieldumas.com/php-operators-using-arithmetic-operators.php&amp;title=PHP+Operators+%3A+Using+Arithmetic+Operators" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://danieldumas.com/php-operators-using-arithmetic-operators.php&amp;title=PHP+Operators+%3A+Using+Arithmetic+Operators" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://danieldumas.com/php-operators-using-arithmetic-operators.php" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PHP+Operators+%3A+Using+Arithmetic+Operators+-+http://b2l.me/ah3hbh&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://danieldumas.com/php-operators-using-arithmetic-operators.php&amp;submitHeadline=PHP+Operators+%3A+Using+Arithmetic+Operators&amp;submitSummary=Using%20Arithmetic%20Operators%20in%20PHP%20you%20can%20perform%20mathematical%20operations%20on%20PHP%20variables.%20refer%20to%20the%20example%20below.%0AUsing%20PHP%20Arithmetic%20Operator%0A%2F%2Fdefine%20variables%0A%26lt%3B%3Fphp%0A%0A%24num1%20%3D%2050%3B%0A%24num2%20%3D%2030%3B%0A%0A%2F%2FAddition%0A%24sum%20%3D%20%24num1%20%2B%20%24num2%3B%0A%0A%2F%2FSubtraction%0A%24difference%20%3D%20%24num1%20-%20%24num2%3B%0A%0A%2F%2FMultiplication%0A%24&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdanieldumas.com%2Fphp-operators-using-arithmetic-operators.php&amp;t=PHP+Operators+%3A+Using+Arithmetic+Operators" rel="nofollow" class="external" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-yahoomail">
			<a href="http://compose.mail.yahoo.com/?Subject=PHP+Operators+%3A+Using+Arithmetic+Operators&amp;body=Link: http://danieldumas.com/php-operators-using-arithmetic-operators.php (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Using%20Arithmetic%20Operators%20in%20PHP%20you%20can%20perform%20mathematical%20operations%20on%20PHP%20variables.%20refer%20to%20the%20example%20below.%0AUsing%20PHP%20Arithmetic%20Operator%0A%2F%2Fdefine%20variables%0A%26lt%3B%3Fphp%0A%0A%24num1%20%3D%2050%3B%0A%24num2%20%3D%2030%3B%0A%0A%2F%2FAddition%0A%24sum%20%3D%20%24num1%20%2B%20%24num2%3B%0A%0A%2F%2FSubtraction%0A%24difference%20%3D%20%24num1%20-%20%24num2%3B%0A%0A%2F%2FMultiplication%0A%24" rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://danieldumas.com/php-operators-using-arithmetic-operators.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Operators</title>
		<link>http://danieldumas.com/php-operators.php</link>
		<comments>http://danieldumas.com/php-operators.php#comments</comments>
		<pubDate>Wed, 31 Dec 2008 14:17:32 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Tutorials]]></category>

		<guid isPermaLink="false">http://danieldumas.com/?p=670</guid>
		<description><![CDATA[PHP Operators are very important, if PHP variables is the building blocks of PHP programming PHP Operators is the tool that lets you do something useful with variables. php comes with many useful operators such as Assignment Operator, Arithmetic Operator, String Operator, Comparison Operator and Logical Operator.
Below is a list of PHP Operators and its [...]]]></description>
			<content:encoded><![CDATA[<p><strong>PHP Operators</strong> are very important, if <strong>PHP variables</strong> is the building blocks of PHP programming <strong>PHP Operators</strong> is the tool that lets you do something useful with variables. php comes with many useful operators such as Assignment Operator, Arithmetic Operator, String Operator, Comparison Operator and Logical Operator.<span id="more-670"></span></p>
<p>Below is a list of <strong>PHP Operators and its function</strong></p>
<table border="0">
<tbody>
<tr>
<th style="width: 200px; text-align: left;">PHP OPERATORS</th>
</tr>
<tr>
<td><code>=</code></td>
<td>Assignment</td>
</tr>
<tr>
<td><code>+</code></td>
<td>Addition</td>
</tr>
<tr>
<td><code>-</code></td>
<td>Subtraction</td>
</tr>
<tr>
<td><code>*</code></td>
<td>Multiplication</td>
</tr>
<tr>
<td><code>/</code></td>
<td>Division</td>
</tr>
<tr>
<td><code>%</code></td>
<td>Modulus</td>
</tr>
<tr>
<td><code>.</code></td>
<td>String Concatenation</td>
</tr>
<tr>
<td><code>==</code></td>
<td>is equal to</td>
</tr>
<tr>
<td><code>===</code></td>
<td>is equal to and of the same type</td>
</tr>
<tr>
<td><code>&lt;&gt; or !=</code></td>
<td>Not equal to</td>
</tr>
<tr>
<td><code>&lt;<br />
</code></td>
<td>Less than</td>
</tr>
<tr>
<td><code>&gt;</code></td>
<td>Greater Than</td>
</tr>
<tr>
<td><code>&lt;=</code></td>
<td>Less than or Equal to</td>
</tr>
<tr>
<td><code>&gt;=</code></td>
<td>Greater than or Equal to</td>
</tr>
<tr>
<td><code>&amp;&amp;</code></td>
<td>Logical AND</td>
</tr>
<tr>
<td><code>||</code></td>
<td>Logical OR</td>
</tr>
<tr>
<td><code>xor</code></td>
<td>Logical XOR</td>
</tr>
<tr>
<td><code>!</code></td>
<td>Logical NOT</td>
</tr>
<tr>
<td><code>++</code></td>
<td>Increment or Addition by 1</td>
</tr>
<tr>
<td>&#8211;</td>
<td>Decrement or Subtraction by 1</td>
</tr>
</tbody>
</table>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://danieldumas.com/php-operators.php&amp;t=PHP+Operators" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://danieldumas.com/php-operators.php&amp;feed=comments-rss2" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://danieldumas.com/php-operators.php&amp;title=PHP+Operators" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://danieldumas.com/php-operators.php&amp;title=PHP+Operators" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://danieldumas.com/php-operators.php&amp;title=PHP+Operators&amp;srcUrl=http://danieldumas.com/php-operators.php&amp;srcTitle=PHP+Operators&amp;snippet=PHP%20Operators%20are%20very%20important%2C%20if%20PHP%20variables%20is%20the%20building%20blocks%20of%20PHP%20programming%20PHP%20Operators%20is%20the%20tool%20that%20lets%20you%20do%20something%20useful%20with%20variables.%20php%20comes%20with%20many%20useful%20operators%20such%20as%20Assignment%20Operator%2C%20Arithmetic%20Operator%2C%20String%20Operator%2C%20Comparison%20Operator%20and%20Log" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://danieldumas.com/php-operators.php&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://danieldumas.com/php-operators.php&amp;title=PHP+Operators" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://danieldumas.com/php-operators.php&amp;title=PHP+Operators" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://danieldumas.com/php-operators.php" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PHP+Operators+-+http://b2l.me/ah3hbk&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://danieldumas.com/php-operators.php&amp;submitHeadline=PHP+Operators&amp;submitSummary=PHP%20Operators%20are%20very%20important%2C%20if%20PHP%20variables%20is%20the%20building%20blocks%20of%20PHP%20programming%20PHP%20Operators%20is%20the%20tool%20that%20lets%20you%20do%20something%20useful%20with%20variables.%20php%20comes%20with%20many%20useful%20operators%20such%20as%20Assignment%20Operator%2C%20Arithmetic%20Operator%2C%20String%20Operator%2C%20Comparison%20Operator%20and%20Log&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdanieldumas.com%2Fphp-operators.php&amp;t=PHP+Operators" rel="nofollow" class="external" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-yahoomail">
			<a href="http://compose.mail.yahoo.com/?Subject=PHP+Operators&amp;body=Link: http://danieldumas.com/php-operators.php (sent via shareaholic)%0D%0A%0D%0A----%0D%0A PHP%20Operators%20are%20very%20important%2C%20if%20PHP%20variables%20is%20the%20building%20blocks%20of%20PHP%20programming%20PHP%20Operators%20is%20the%20tool%20that%20lets%20you%20do%20something%20useful%20with%20variables.%20php%20comes%20with%20many%20useful%20operators%20such%20as%20Assignment%20Operator%2C%20Arithmetic%20Operator%2C%20String%20Operator%2C%20Comparison%20Operator%20and%20Log" rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://danieldumas.com/php-operators.php/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Detecting the data type of a PHP variable</title>
		<link>http://danieldumas.com/detecting-the-data-type-php-variable.php</link>
		<comments>http://danieldumas.com/detecting-the-data-type-php-variable.php#comments</comments>
		<pubDate>Fri, 28 Nov 2008 16:47:51 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Tutorials]]></category>

		<guid isPermaLink="false">http://danieldumas.com/?p=663</guid>
		<description><![CDATA[Detecting the datatype of a specific PHP variable can be done by using PHP gettype() function. refer below for example.

&#60;?php

//define variables
$on = true;
$age = 20;
$name = "daniel";
$price = 99.99;

//Returns Boolean
echo gettype($on);

//Returns String
echo gettype($name);

//Returns Integer
echo gettype($age);

//Returns Double
echo gettype($price);

?&#62;


You can also use other PHP functions to determine the datatypes of a variable



FUNCTION NAME


is_bool()
Checks if a variable is [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Detecting the datatype of a specific PHP variable</strong> can be done by using PHP <code>gettype()</code> function. refer below for example.</p>
<pre name="code" class="php">
&lt;?php

//define variables
$on = true;
$age = 20;
$name = "daniel";
$price = 99.99;

//Returns Boolean
echo gettype($on);

//Returns String
echo gettype($name);

//Returns Integer
echo gettype($age);

//Returns Double
echo gettype($price);

?&gt;
</pre>
<p><span id="more-663"></span><br />
You can also use other PHP functions to determine the datatypes of a variable</p>
<table border="0">
<tbody>
<tr>
<th style="width: 200px; text-align: left;">FUNCTION NAME</th>
</tr>
<tr>
<td><code>is_bool()</code></td>
<td>Checks if a variable is a BOOLEAN</td>
</tr>
<tr>
<td><code>is_string()</code></td>
<td>Checks if a variable is a STRING</td>
</tr>
<tr>
<td><code>is_numeric()</code></td>
<td>Checks if a variable is a NUMERIC STRING</td>
</tr>
<tr>
<td><code>is_int()</code></td>
<td>Checks if a variable is an INTEGER</td>
</tr>
<tr>
<td><code>is_array()</code></td>
<td>Checks if a variable is an ARRAY</td>
</tr>
<tr>
<td><code>is_object()</code></td>
<td>Checks if a variable is an OBJECT</td>
</tr>
<tr>
<td><code>is_null()</code></td>
<td>Checks if a variable is NULL</td>
</tr>
<tr>
<td><code>is_float()</code></td>
<td>Checks if a variable is a FLOAT</td>
</tr>
</tbody>
</table>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://danieldumas.com/detecting-the-data-type-php-variable.php&amp;t=Detecting+the+data+type+of+a+PHP+variable" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://danieldumas.com/detecting-the-data-type-php-variable.php&amp;feed=comments-rss2" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://danieldumas.com/detecting-the-data-type-php-variable.php&amp;title=Detecting+the+data+type+of+a+PHP+variable" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://danieldumas.com/detecting-the-data-type-php-variable.php&amp;title=Detecting+the+data+type+of+a+PHP+variable" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://danieldumas.com/detecting-the-data-type-php-variable.php&amp;title=Detecting+the+data+type+of+a+PHP+variable&amp;srcUrl=http://danieldumas.com/detecting-the-data-type-php-variable.php&amp;srcTitle=Detecting+the+data+type+of+a+PHP+variable&amp;snippet=Detecting%20the%20datatype%20of%20a%20specific%20PHP%20variable%20can%20be%20done%20by%20using%20PHP%20gettype%28%29%20function.%20refer%20below%20for%20example.%0A%0A%26lt%3B%3Fphp%0A%0A%2F%2Fdefine%20variables%0A%24on%20%3D%20true%3B%0A%24age%20%3D%2020%3B%0A%24name%20%3D%20%22daniel%22%3B%0A%24price%20%3D%2099.99%3B%0A%0A%2F%2FReturns%20Boolean%0Aecho%20gettype%28%24on%29%3B%0A%0A%2F%2FReturns%20String%0Aecho%20gettype%28%24name%29%3B%0A%0A%2F%2FReturns%20Integ" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://danieldumas.com/detecting-the-data-type-php-variable.php&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://danieldumas.com/detecting-the-data-type-php-variable.php&amp;title=Detecting+the+data+type+of+a+PHP+variable" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://danieldumas.com/detecting-the-data-type-php-variable.php&amp;title=Detecting+the+data+type+of+a+PHP+variable" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://danieldumas.com/detecting-the-data-type-php-variable.php" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Detecting+the+data+type+of+a+PHP+variable+-+http://b2l.me/ah3hbn&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://danieldumas.com/detecting-the-data-type-php-variable.php&amp;submitHeadline=Detecting+the+data+type+of+a+PHP+variable&amp;submitSummary=Detecting%20the%20datatype%20of%20a%20specific%20PHP%20variable%20can%20be%20done%20by%20using%20PHP%20gettype%28%29%20function.%20refer%20below%20for%20example.%0A%0A%26lt%3B%3Fphp%0A%0A%2F%2Fdefine%20variables%0A%24on%20%3D%20true%3B%0A%24age%20%3D%2020%3B%0A%24name%20%3D%20%22daniel%22%3B%0A%24price%20%3D%2099.99%3B%0A%0A%2F%2FReturns%20Boolean%0Aecho%20gettype%28%24on%29%3B%0A%0A%2F%2FReturns%20String%0Aecho%20gettype%28%24name%29%3B%0A%0A%2F%2FReturns%20Integ&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdanieldumas.com%2Fdetecting-the-data-type-php-variable.php&amp;t=Detecting+the+data+type+of+a+PHP+variable" rel="nofollow" class="external" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-yahoomail">
			<a href="http://compose.mail.yahoo.com/?Subject=Detecting+the+data+type+of+a+PHP+variable&amp;body=Link: http://danieldumas.com/detecting-the-data-type-php-variable.php (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Detecting%20the%20datatype%20of%20a%20specific%20PHP%20variable%20can%20be%20done%20by%20using%20PHP%20gettype%28%29%20function.%20refer%20below%20for%20example.%0A%0A%26lt%3B%3Fphp%0A%0A%2F%2Fdefine%20variables%0A%24on%20%3D%20true%3B%0A%24age%20%3D%2020%3B%0A%24name%20%3D%20%22daniel%22%3B%0A%24price%20%3D%2099.99%3B%0A%0A%2F%2FReturns%20Boolean%0Aecho%20gettype%28%24on%29%3B%0A%0A%2F%2FReturns%20String%0Aecho%20gettype%28%24name%29%3B%0A%0A%2F%2FReturns%20Integ" rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://danieldumas.com/detecting-the-data-type-php-variable.php/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PHP and MySQL Basics: Saving form input in PHP variables</title>
		<link>http://danieldumas.com/saving-form-input-values-to-php-variables.php</link>
		<comments>http://danieldumas.com/saving-form-input-values-to-php-variables.php#comments</comments>
		<pubDate>Mon, 10 Nov 2008 20:09:26 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Tutorials]]></category>

		<guid isPermaLink="false">http://danieldumas.com/?p=630</guid>
		<description><![CDATA[form can add interactivity to your site, it enables you to get information or comments from your visitors. saving a value from a form input to a php variable is very easy. refer to the example below.
Example 1: Processing forms in the same php file
Copy and Paste the code below to your text editor and [...]]]></description>
			<content:encoded><![CDATA[<p>form can add interactivity to your site, it enables you to get information or comments from your visitors. <strong>saving a value from a form input to a php variable</strong> is very easy. refer to the example below.</p>
<p><span style="color: #ff0000;"><strong>Example 1: Processing forms in the same php file</strong></span></p>
<p>Copy and Paste the code below to your text editor and save it as form.php, then run it on your localhost<span id="more-630"></span></p>
<pre name="code" class="php">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Saving Form Input in PHP Variables&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;form method="post"&gt;
Enter message : &lt;input type="text" name="msg"&gt;
&lt;input type="submit" value="Print Msg"&gt;

&lt;?php
// stores the form data into a php variable
$msg = $_POST['msg'];
//Prints the data retrieve from the form
echo "You said: &lt;b&gt;$msg&lt;/b&gt;";
?&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p><span style="color: #ff0000;"><strong>Example 2: Processing Form using external php file</strong></span></p>
<p>Copy and Save the code below to your text editor and save it as form2.php</p>
<pre name="code" class="php">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Saving Form Input in PHP Variables&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;form action="msghandler.php" method="post"&gt;
Enter message : &lt;input type="text" name="msg"&gt;
&lt;input type="submit" value="Print Msg"&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Copy and Save the code below to your text editor and save it as msghandler.php in the same folder where form2.php is located, this is the php script that will process the form2.php above</p>
<pre name="code" class="php">&lt;?php
// stores the form data into a php variable
$msg = $_POST['msg'];
//Prints the data retrieve from the form
echo "You said: &lt;b&gt;$msg&lt;/b&gt;";
?&gt;</pre>
<p><strong>You Should Get this output in your browser. .</strong></p>
<p><em>Before clicking the print button</em></p>
<p style="text-align: center;"><img class="aligncenter" title="Saving Form Input Into a PHP Variable" src="http://i141.photobucket.com/albums/r54/daniel22nd/saving_form_input_in_php.jpg" alt="Saving Form Input Into a PHP Variable" width="446" height="304" /></p>
<p><em>After Clicking the print button</em></p>
<p style="text-align: center;"><img class="aligncenter" title="Saving Form Input Into a PHP Variable" src="http://i141.photobucket.com/albums/r54/daniel22nd/saving_form_input_in_php2.jpg" alt="Saving Form Input Into a PHP Variable" width="446" height="304" /></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://danieldumas.com/saving-form-input-values-to-php-variables.php&amp;t=PHP+and+MySQL+Basics%3A+Saving+form+input+in+PHP+variables" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://danieldumas.com/saving-form-input-values-to-php-variables.php&amp;feed=comments-rss2" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://danieldumas.com/saving-form-input-values-to-php-variables.php&amp;title=PHP+and+MySQL+Basics%3A+Saving+form+input+in+PHP+variables" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://danieldumas.com/saving-form-input-values-to-php-variables.php&amp;title=PHP+and+MySQL+Basics%3A+Saving+form+input+in+PHP+variables" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://danieldumas.com/saving-form-input-values-to-php-variables.php&amp;title=PHP+and+MySQL+Basics%3A+Saving+form+input+in+PHP+variables&amp;srcUrl=http://danieldumas.com/saving-form-input-values-to-php-variables.php&amp;srcTitle=PHP+and+MySQL+Basics%3A+Saving+form+input+in+PHP+variables&amp;snippet=form%20can%20add%20interactivity%20to%20your%20site%2C%20it%20enables%20you%20to%20get%20information%20or%20comments%20from%20your%20visitors.%20saving%20a%20value%20from%20a%20form%20input%20to%20a%20php%20variable%20is%20very%20easy.%20refer%20to%20the%20example%20below.%0A%0AExample%201%3A%20Processing%20forms%20in%20the%20same%20php%20file%0A%0ACopy%20and%20Paste%20the%20code%20below%20to%20your%20text%20editor" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://danieldumas.com/saving-form-input-values-to-php-variables.php&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://danieldumas.com/saving-form-input-values-to-php-variables.php&amp;title=PHP+and+MySQL+Basics%3A+Saving+form+input+in+PHP+variables" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://danieldumas.com/saving-form-input-values-to-php-variables.php&amp;title=PHP+and+MySQL+Basics%3A+Saving+form+input+in+PHP+variables" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://danieldumas.com/saving-form-input-values-to-php-variables.php" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PHP+and+MySQL+Basics%3A+Saving+form+input+in+PHP+variables+-+http://b2l.me/ah3hbs&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://danieldumas.com/saving-form-input-values-to-php-variables.php&amp;submitHeadline=PHP+and+MySQL+Basics%3A+Saving+form+input+in+PHP+variables&amp;submitSummary=form%20can%20add%20interactivity%20to%20your%20site%2C%20it%20enables%20you%20to%20get%20information%20or%20comments%20from%20your%20visitors.%20saving%20a%20value%20from%20a%20form%20input%20to%20a%20php%20variable%20is%20very%20easy.%20refer%20to%20the%20example%20below.%0A%0AExample%201%3A%20Processing%20forms%20in%20the%20same%20php%20file%0A%0ACopy%20and%20Paste%20the%20code%20below%20to%20your%20text%20editor&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdanieldumas.com%2Fsaving-form-input-values-to-php-variables.php&amp;t=PHP+and+MySQL+Basics%3A+Saving+form+input+in+PHP+variables" rel="nofollow" class="external" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-yahoomail">
			<a href="http://compose.mail.yahoo.com/?Subject=PHP+and+MySQL+Basics%3A+Saving+form+input+in+PHP+variables&amp;body=Link: http://danieldumas.com/saving-form-input-values-to-php-variables.php (sent via shareaholic)%0D%0A%0D%0A----%0D%0A form%20can%20add%20interactivity%20to%20your%20site%2C%20it%20enables%20you%20to%20get%20information%20or%20comments%20from%20your%20visitors.%20saving%20a%20value%20from%20a%20form%20input%20to%20a%20php%20variable%20is%20very%20easy.%20refer%20to%20the%20example%20below.%0A%0AExample%201%3A%20Processing%20forms%20in%20the%20same%20php%20file%0A%0ACopy%20and%20Paste%20the%20code%20below%20to%20your%20text%20editor" rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://danieldumas.com/saving-form-input-values-to-php-variables.php/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fix wordpress fatal error allowed memory size exhausted</title>
		<link>http://danieldumas.com/wordpress-fatal-error-allowed-memory-size-exhausted.php</link>
		<comments>http://danieldumas.com/wordpress-fatal-error-allowed-memory-size-exhausted.php#comments</comments>
		<pubDate>Fri, 24 Oct 2008 02:24:30 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Plugins]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[Tips and Tutorials]]></category>

		<guid isPermaLink="false">http://danieldumas.com/?p=506</guid>
		<description><![CDATA[Fatal error:  Allowed memory size of &#8230;&#8230; bytes exhausted (tried to allocate &#8230;. bytes) in home/of/some/thing/fishy.php  

I experienced this weird Wordpress or rather PHP error last night when trying to view my blog when i got home, at first i thought that there was a technical problem at my server so i waited, [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p><strong>Fatal error:  Allowed memory size of &#8230;&#8230; bytes exhausted (tried to allocate &#8230;. bytes) in home/of/some/thing/fishy.php  <img src='http://danieldumas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
</strong></p></blockquote>
<p><a href="http://localhost/danieldumas.com/wp-content/uploads/2008/10/wordpress_php1.jpg"><img class="alignright size-full wp-image-547" title="wordpress_php" src="http://localhost/danieldumas.com/wp-content/uploads/2008/10/wordpress_php1.jpg" alt="Wordpress Fatal Error allowed memory size exhausted" width="161" height="86" /></a>I experienced this weird Wordpress or rather PHP error last night when trying to view my blog when i got home, at first i thought that there was a technical problem at my server so i waited, then i waited and waited and waited again for almost 7 hours then i cant wait no more i want to blogggg&#8230; so i contact my hosting provider and they told me that there is nothing wrong with the server nahhh WTF! i told to my self. . <img src='http://danieldumas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <span id="more-506"></span>but i cant figure out the problem at first. .then i figure out that i can access other part of my site. .so i said to myself.. hmm maybe its because of the plugin that i last installed so again i waited and let the night past but the error was still there when i woke up. .did you know what did i do? haha call me dumb coz i dont know what to do so i decided to delete my blog files and install wordpress again but ofcourse i backed up my database so i can restore. . but the problem is still there nahh WTF again i said to my self. . haha <img src='http://danieldumas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  until i found a bit of code that can save my life <em>sana </em>haha <img src='http://danieldumas.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> hhyeahh:  . . <strong>PHP Memory Allocation Error</strong> was the real problem it is an error returned by php when it used up the default memory limit, it occurs when PHP is handling or processing a large amount of data or records more that its default memory allocation. I found to 3 ways to Fix this problem</p>
<p><span style="color: #ff0000;"><strong>1st: </strong><span style="color: #000000;">Increase the memory limit of an individual PHP file</span></span></p>
<pre name="code" class="php">ini_set(”memory_limit”,”16M”);</pre>
<p>Put this code at the top of every PHP file that errors are showing, you can expand the memory by changing the 16M to a other value if your still getting errors,. you can set it to 16M, 18M etc..</p>
<p><strong><span style="color: #ff0000;">2nd:</span> </strong>edit your PHP.INI file &#8211; this option will apply to all the php files in your site</p>
<p>search your php.ini file and find <strong>memory_limit: </strong>put values like at the top for example</p>
<pre name="code" class="php">memory_limit: 16M</pre>
<p><strong><span style="color: #ff0000;">3rd:</span> </strong>use .htaccess to expand the memory allocation &#8211; this option will apply to all the php files in your site</p>
<pre name="code" class="php">php_value memory_limit 32000000</pre>
<p>Copy and paste the code above to your .htaccess file</p>
<p>Thats it! the errors are gone <img src='http://danieldumas.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://danieldumas.com/wordpress-fatal-error-allowed-memory-size-exhausted.php&amp;t=Fix+wordpress+fatal+error+allowed+memory+size+exhausted" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://danieldumas.com/wordpress-fatal-error-allowed-memory-size-exhausted.php&amp;feed=comments-rss2" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://danieldumas.com/wordpress-fatal-error-allowed-memory-size-exhausted.php&amp;title=Fix+wordpress+fatal+error+allowed+memory+size+exhausted" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://danieldumas.com/wordpress-fatal-error-allowed-memory-size-exhausted.php&amp;title=Fix+wordpress+fatal+error+allowed+memory+size+exhausted" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://danieldumas.com/wordpress-fatal-error-allowed-memory-size-exhausted.php&amp;title=Fix+wordpress+fatal+error+allowed+memory+size+exhausted&amp;srcUrl=http://danieldumas.com/wordpress-fatal-error-allowed-memory-size-exhausted.php&amp;srcTitle=Fix+wordpress+fatal+error+allowed+memory+size+exhausted&amp;snippet=Fatal%20error%3A%20%20Allowed%20memory%20size%20of%20......%20bytes%20exhausted%20%28tried%20to%20allocate%20....%20bytes%29%20in%20home%2Fof%2Fsome%2Fthing%2Ffishy.php%20%20%3A%29%0A%0AI%20experienced%20this%20weird%20Wordpress%20or%20rather%20PHP%20error%20last%20night%20when%20trying%20to%20view%20my%20blog%20when%20i%20got%20home%2C%20at%20first%20i%20thought%20that%20there%20was%20a%20technical%20problem%20at%20my%20s" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://danieldumas.com/wordpress-fatal-error-allowed-memory-size-exhausted.php&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://danieldumas.com/wordpress-fatal-error-allowed-memory-size-exhausted.php&amp;title=Fix+wordpress+fatal+error+allowed+memory+size+exhausted" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://danieldumas.com/wordpress-fatal-error-allowed-memory-size-exhausted.php&amp;title=Fix+wordpress+fatal+error+allowed+memory+size+exhausted" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://danieldumas.com/wordpress-fatal-error-allowed-memory-size-exhausted.php" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Fix+wordpress+fatal+error+allowed+memory+size+exhausted+-+http://b2l.me/ah3q94&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://danieldumas.com/wordpress-fatal-error-allowed-memory-size-exhausted.php&amp;submitHeadline=Fix+wordpress+fatal+error+allowed+memory+size+exhausted&amp;submitSummary=Fatal%20error%3A%20%20Allowed%20memory%20size%20of%20......%20bytes%20exhausted%20%28tried%20to%20allocate%20....%20bytes%29%20in%20home%2Fof%2Fsome%2Fthing%2Ffishy.php%20%20%3A%29%0A%0AI%20experienced%20this%20weird%20Wordpress%20or%20rather%20PHP%20error%20last%20night%20when%20trying%20to%20view%20my%20blog%20when%20i%20got%20home%2C%20at%20first%20i%20thought%20that%20there%20was%20a%20technical%20problem%20at%20my%20s&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdanieldumas.com%2Fwordpress-fatal-error-allowed-memory-size-exhausted.php&amp;t=Fix+wordpress+fatal+error+allowed+memory+size+exhausted" rel="nofollow" class="external" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-yahoomail">
			<a href="http://compose.mail.yahoo.com/?Subject=Fix+wordpress+fatal+error+allowed+memory+size+exhausted&amp;body=Link: http://danieldumas.com/wordpress-fatal-error-allowed-memory-size-exhausted.php (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Fatal%20error%3A%20%20Allowed%20memory%20size%20of%20......%20bytes%20exhausted%20%28tried%20to%20allocate%20....%20bytes%29%20in%20home%2Fof%2Fsome%2Fthing%2Ffishy.php%20%20%3A%29%0A%0AI%20experienced%20this%20weird%20Wordpress%20or%20rather%20PHP%20error%20last%20night%20when%20trying%20to%20view%20my%20blog%20when%20i%20got%20home%2C%20at%20first%20i%20thought%20that%20there%20was%20a%20technical%20problem%20at%20my%20s" rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://danieldumas.com/wordpress-fatal-error-allowed-memory-size-exhausted.php/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>PHP and MySQL Basics: Assigning and Using Variables</title>
		<link>http://danieldumas.com/assigning-php-variables.php</link>
		<comments>http://danieldumas.com/assigning-php-variables.php#comments</comments>
		<pubDate>Sun, 05 Oct 2008 23:34:30 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Tutorials]]></category>

		<guid isPermaLink="false">http://danieldumas.com/?p=284</guid>
		<description><![CDATA[Assigning a value to PHP variable is very easy, you can use the assignment operator ( = ) to store values into a php variable. refer below for example.
&#60;html&#62;
&#60;head&#62;
&#60;title&#62;Assigning Values to PHP Variable&#60;/title&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;?php
//this is how you assign a value to a php variable
$age = 20;
//To use the variable $age, simply call its name and PHP [...]]]></description>
			<content:encoded><![CDATA[<p>Assigning a value to PHP variable is very easy, you can use the assignment operator ( = ) to store values into a php variable. refer below for example.</p>
<pre name="code" class="php">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Assigning Values to PHP Variable&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;?php
//this is how you assign a value to a php variable
$age = 20;
//To use the variable $age, simply call its name and PHP will substitute its value at runtime.
//this is how you use a php variable
echo "I am now $age years old";
?&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>copy and paste the code above to your text editor and save it as variable.php then run it on your localhost.</p>
<p>you should get this output..<span id="more-284"></span></p>
<p><a href="http://localhost/danieldumas.com/wp-content/uploads/2008/10/variables1.png"><img class="size-full wp-image-287 alignnone" title="variables" src="http://localhost/danieldumas.com/wp-content/uploads/2008/10/variables1.png" alt="assigning values to php variables" width="470" height="279" /></a></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://danieldumas.com/assigning-php-variables.php&amp;t=PHP+and+MySQL+Basics%3A+Assigning+and+Using+Variables" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://danieldumas.com/assigning-php-variables.php&amp;feed=comments-rss2" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://danieldumas.com/assigning-php-variables.php&amp;title=PHP+and+MySQL+Basics%3A+Assigning+and+Using+Variables" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://danieldumas.com/assigning-php-variables.php&amp;title=PHP+and+MySQL+Basics%3A+Assigning+and+Using+Variables" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://danieldumas.com/assigning-php-variables.php&amp;title=PHP+and+MySQL+Basics%3A+Assigning+and+Using+Variables&amp;srcUrl=http://danieldumas.com/assigning-php-variables.php&amp;srcTitle=PHP+and+MySQL+Basics%3A+Assigning+and+Using+Variables&amp;snippet=Assigning%20a%20value%20to%20PHP%20variable%20is%20very%20easy%2C%20you%20can%20use%20the%20assignment%20operator%20%28%20%3D%20%29%20to%20store%20values%20into%20a%20php%20variable.%20refer%20below%20for%20example.%0A%26lt%3Bhtml%26gt%3B%0A%26lt%3Bhead%26gt%3B%0A%26lt%3Btitle%26gt%3BAssigning%20Values%20to%20PHP%20Variable%26lt%3B%2Ftitle%26gt%3B%0A%26lt%3B%2Fhead%26gt%3B%0A%26lt%3Bbody%26gt%3B%0A%26lt%3B%3Fphp%0A%2F%2Fthis%20is%20how%20you%20assign%20a" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://danieldumas.com/assigning-php-variables.php&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://danieldumas.com/assigning-php-variables.php&amp;title=PHP+and+MySQL+Basics%3A+Assigning+and+Using+Variables" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://danieldumas.com/assigning-php-variables.php&amp;title=PHP+and+MySQL+Basics%3A+Assigning+and+Using+Variables" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://danieldumas.com/assigning-php-variables.php" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PHP+and+MySQL+Basics%3A+Assigning+and+Using+Variables+-+http://b2l.me/ah46aq&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://danieldumas.com/assigning-php-variables.php&amp;submitHeadline=PHP+and+MySQL+Basics%3A+Assigning+and+Using+Variables&amp;submitSummary=Assigning%20a%20value%20to%20PHP%20variable%20is%20very%20easy%2C%20you%20can%20use%20the%20assignment%20operator%20%28%20%3D%20%29%20to%20store%20values%20into%20a%20php%20variable.%20refer%20below%20for%20example.%0A%26lt%3Bhtml%26gt%3B%0A%26lt%3Bhead%26gt%3B%0A%26lt%3Btitle%26gt%3BAssigning%20Values%20to%20PHP%20Variable%26lt%3B%2Ftitle%26gt%3B%0A%26lt%3B%2Fhead%26gt%3B%0A%26lt%3Bbody%26gt%3B%0A%26lt%3B%3Fphp%0A%2F%2Fthis%20is%20how%20you%20assign%20a&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdanieldumas.com%2Fassigning-php-variables.php&amp;t=PHP+and+MySQL+Basics%3A+Assigning+and+Using+Variables" rel="nofollow" class="external" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-yahoomail">
			<a href="http://compose.mail.yahoo.com/?Subject=PHP+and+MySQL+Basics%3A+Assigning+and+Using+Variables&amp;body=Link: http://danieldumas.com/assigning-php-variables.php (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Assigning%20a%20value%20to%20PHP%20variable%20is%20very%20easy%2C%20you%20can%20use%20the%20assignment%20operator%20%28%20%3D%20%29%20to%20store%20values%20into%20a%20php%20variable.%20refer%20below%20for%20example.%0A%26lt%3Bhtml%26gt%3B%0A%26lt%3Bhead%26gt%3B%0A%26lt%3Btitle%26gt%3BAssigning%20Values%20to%20PHP%20Variable%26lt%3B%2Ftitle%26gt%3B%0A%26lt%3B%2Fhead%26gt%3B%0A%26lt%3Bbody%26gt%3B%0A%26lt%3B%3Fphp%0A%2F%2Fthis%20is%20how%20you%20assign%20a" rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://danieldumas.com/assigning-php-variables.php/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>PHP and MySQL Basics: Variables</title>
		<link>http://danieldumas.com/php-variables.php</link>
		<comments>http://danieldumas.com/php-variables.php#comments</comments>
		<pubDate>Sun, 05 Oct 2008 22:37:53 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Tutorials]]></category>

		<guid isPermaLink="false">http://danieldumas.com/?p=280</guid>
		<description><![CDATA[Variables are the building blocks of any programming language. in PHP variables are very important, it used to store numeric or non-numeric datas. PHP supports different types of variable types (Booleans, Integers, Floating point numbers, Strings, Arrays, Objects, resources and nulls.
PHP VARIABLE NAMING RULES:

PHP variables starts with a $ sign : example. $daniel
$ sign is [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #99cc00;"><span style="text-decoration: underline;"><strong>Variables</strong></span></span> are the building blocks of any programming language. in PHP variables are very important, it used to store numeric or non-numeric datas. PHP supports different types of variable types (Booleans, Integers, Floating point numbers, Strings, Arrays, Objects, resources and nulls.</p>
<p><span style="color: #99cc00;"><span style="text-decoration: underline;"><strong>PHP VARIABLE NAMING RULES:</strong></span></span></p>
<ol>
<li>PHP variables starts with a <strong>$ </strong>sign : example. $daniel</li>
<li>$ sign is followed by a letter or an underscore. thus $123 is not a valid PHP variable.<span id="more-280"></span></li>
<li>it can contain letters, numbers, underscores or even dashes.</li>
<li>no spaces</li>
<li>PHP variables are CASE-SENSITIVE thus $daniel and $DANIEL are completely different variable.</li>
</ol>
<p><span style="color: #99cc00;"><span style="text-decoration: underline;"><strong>EXAMPLES OF VALID PHP VARIABLES</strong></span></span></p>
<p>$dan<br />
$Daniel<br />
$myVariable &#8211; Camel case style<br />
$my_variable<br />
$my-variable<br />
$item1<br />
$_note<br />
$__noteBook</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://danieldumas.com/php-variables.php&amp;t=PHP+and+MySQL+Basics%3A+Variables" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://danieldumas.com/php-variables.php&amp;feed=comments-rss2" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://danieldumas.com/php-variables.php&amp;title=PHP+and+MySQL+Basics%3A+Variables" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://danieldumas.com/php-variables.php&amp;title=PHP+and+MySQL+Basics%3A+Variables" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://danieldumas.com/php-variables.php&amp;title=PHP+and+MySQL+Basics%3A+Variables&amp;srcUrl=http://danieldumas.com/php-variables.php&amp;srcTitle=PHP+and+MySQL+Basics%3A+Variables&amp;snippet=Variables%20are%20the%20building%20blocks%20of%20any%20programming%20language.%20in%20PHP%20variables%20are%20very%20important%2C%20it%20used%20to%20store%20numeric%20or%20non-numeric%20datas.%20PHP%20supports%20different%20types%20of%20variable%20types%20%28Booleans%2C%20Integers%2C%20Floating%20point%20numbers%2C%20Strings%2C%20Arrays%2C%20Objects%2C%20resources%20and%20nulls.%0A%0APHP%20VARIABLE%20" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://danieldumas.com/php-variables.php&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://danieldumas.com/php-variables.php&amp;title=PHP+and+MySQL+Basics%3A+Variables" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://danieldumas.com/php-variables.php&amp;title=PHP+and+MySQL+Basics%3A+Variables" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://danieldumas.com/php-variables.php" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=PHP+and+MySQL+Basics%3A+Variables+-+http://b2l.me/ah7auk&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://danieldumas.com/php-variables.php&amp;submitHeadline=PHP+and+MySQL+Basics%3A+Variables&amp;submitSummary=Variables%20are%20the%20building%20blocks%20of%20any%20programming%20language.%20in%20PHP%20variables%20are%20very%20important%2C%20it%20used%20to%20store%20numeric%20or%20non-numeric%20datas.%20PHP%20supports%20different%20types%20of%20variable%20types%20%28Booleans%2C%20Integers%2C%20Floating%20point%20numbers%2C%20Strings%2C%20Arrays%2C%20Objects%2C%20resources%20and%20nulls.%0A%0APHP%20VARIABLE%20&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fdanieldumas.com%2Fphp-variables.php&amp;t=PHP+and+MySQL+Basics%3A+Variables" rel="nofollow" class="external" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-yahoomail">
			<a href="http://compose.mail.yahoo.com/?Subject=PHP+and+MySQL+Basics%3A+Variables&amp;body=Link: http://danieldumas.com/php-variables.php (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Variables%20are%20the%20building%20blocks%20of%20any%20programming%20language.%20in%20PHP%20variables%20are%20very%20important%2C%20it%20used%20to%20store%20numeric%20or%20non-numeric%20datas.%20PHP%20supports%20different%20types%20of%20variable%20types%20%28Booleans%2C%20Integers%2C%20Floating%20point%20numbers%2C%20Strings%2C%20Arrays%2C%20Objects%2C%20resources%20and%20nulls.%0A%0APHP%20VARIABLE%20" rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://danieldumas.com/php-variables.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
