<?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/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://danieldumas.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 30 Apr 2012 06:16:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>PHP Auto-Increment and Auto-Decrement Operators</title>
		<link>http://danieldumas.com/php-auto-increment-and-auto-decrement-operators.php</link>
		<comments>http://danieldumas.com/php-auto-increment-and-auto-decrement-operators.php#comments</comments>
		<pubDate>Mon, 30 Apr 2012 06:16:47 +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=1225</guid>
		<description><![CDATA[The auto-increment operator designed to automatically increment the value of the variable it is attached to by 1. It is represented by a double addition symbol (++). To see it in action, run the following script: &#60;?php // define $total as 10 $total = 10; // increment it $total++; // $total is now 11 ?&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>The auto-increment operator designed to automatically increment the value of the variable it is attached to by 1. It is represented by a double addition symbol (++). To see it in action, run the following script:</p>
<pre name="code" class="php">

&lt;?php
// define $total as 10
$total = 10;
// increment it
$total++;
// $total is now 11

?&gt;
</pre>
<p>  Thus, &lt;?php $total++; ?> is functionally equivalent to &lt;?php<br />
$total = $total + 1; ?>.<br />
  There&#8217;s also a corresponding auto-decrement operator (&ndash;&ndash;), which does exactly the opposite:</p>
<pre name="code" class="php">

&lt;?php
// define $total as 10
$total = 10;
// decrement it
$total--;
// $total is now 9

?&gt;
</pre>
<p>  These operators are frequently used in loops to update the value of the loop counter.</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-auto-increment-and-auto-decrement-operators.php&amp;t=PHP+Auto-Increment+and+Auto-Decrement+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-auto-increment-and-auto-decrement-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-auto-increment-and-auto-decrement-operators.php&amp;title=PHP+Auto-Increment+and+Auto-Decrement+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-auto-increment-and-auto-decrement-operators.php&amp;title=PHP+Auto-Increment+and+Auto-Decrement+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-auto-increment-and-auto-decrement-operators.php&amp;title=PHP+Auto-Increment+and+Auto-Decrement+Operators&amp;srcUrl=http://danieldumas.com/php-auto-increment-and-auto-decrement-operators.php&amp;srcTitle=PHP+Auto-Increment+and+Auto-Decrement+Operators&amp;snippet=The%20auto-increment%20operator%20designed%20to%20automatically%20increment%20the%20value%20of%20the%20variable%20it%20is%20attached%20to%20by%201.%20It%20is%20represented%20by%20a%20double%20addition%20symbol%20%28%2B%2B%29.%20To%20see%20it%20in%20action%2C%20run%20the%20following%20script%3A%0D%0A%0D%0A%0D%0A%0D%0A%26lt%3B%3Fphp%0D%0A%2F%2F%20define%20%24total%20as%2010%0D%0A%24total%20%3D%2010%3B%0D%0A%2F%2F%20increment%20it%0D%0A%24total%2B%2B%3B%0D%0A%2F%2F%20%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-auto-increment-and-auto-decrement-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-auto-increment-and-auto-decrement-operators.php&amp;title=PHP+Auto-Increment+and+Auto-Decrement+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-auto-increment-and-auto-decrement-operators.php&amp;title=PHP+Auto-Increment+and+Auto-Decrement+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-auto-increment-and-auto-decrement-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+Auto-Increment+and+Auto-Decrement+Operators+-+http://bit.ly/IkyYdx&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-auto-increment-and-auto-decrement-operators.php&amp;submitHeadline=PHP+Auto-Increment+and+Auto-Decrement+Operators&amp;submitSummary=The%20auto-increment%20operator%20designed%20to%20automatically%20increment%20the%20value%20of%20the%20variable%20it%20is%20attached%20to%20by%201.%20It%20is%20represented%20by%20a%20double%20addition%20symbol%20%28%2B%2B%29.%20To%20see%20it%20in%20action%2C%20run%20the%20following%20script%3A%0D%0A%0D%0A%0D%0A%0D%0A%26lt%3B%3Fphp%0D%0A%2F%2F%20define%20%24total%20as%2010%0D%0A%24total%20%3D%2010%3B%0D%0A%2F%2F%20increment%20it%0D%0A%24total%2B%2B%3B%0D%0A%2F%2F%20%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-auto-increment-and-auto-decrement-operators.php&amp;t=PHP+Auto-Increment+and+Auto-Decrement+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+Auto-Increment+and+Auto-Decrement+Operators&amp;body=Link: http://danieldumas.com/php-auto-increment-and-auto-decrement-operators.php (sent via shareaholic)%0D%0A%0D%0A----%0D%0A The%20auto-increment%20operator%20designed%20to%20automatically%20increment%20the%20value%20of%20the%20variable%20it%20is%20attached%20to%20by%201.%20It%20is%20represented%20by%20a%20double%20addition%20symbol%20%28%2B%2B%29.%20To%20see%20it%20in%20action%2C%20run%20the%20following%20script%3A%0D%0A%0D%0A%0D%0A%0D%0A%26lt%3B%3Fphp%0D%0A%2F%2F%20define%20%24total%20as%2010%0D%0A%24total%20%3D%2010%3B%0D%0A%2F%2F%20increment%20it%0D%0A%24total%2B%2B%3B%0D%0A%2F%2F%20%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-auto-increment-and-auto-decrement-operators.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Logical Operators</title>
		<link>http://danieldumas.com/php-logical-operators.php</link>
		<comments>http://danieldumas.com/php-logical-operators.php#comments</comments>
		<pubDate>Thu, 08 Mar 2012 19:42:39 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[Logical AND]]></category>
		<category><![CDATA[Logical NOT]]></category>
		<category><![CDATA[logical operators]]></category>
		<category><![CDATA[Logical OR]]></category>
		<category><![CDATA[Logical XOR]]></category>
		<category><![CDATA[PHP Logical Operators]]></category>

		<guid isPermaLink="false">http://danieldumas.com/?p=1220</guid>
		<description><![CDATA[Hey guys! welcome me back! yes, i am finally back again. i been away for a long time, but i am now back again in the blogosphere to share some PHP tutorials, tips and other web development ideas, tips and tricks etc. for today i will discuss about PHP Logical Operators. To link together related [...]]]></description>
			<content:encoded><![CDATA[<p>Hey guys! welcome me back! yes, i am finally back again. i been away for a long time, but i am now back again in the blogosphere to share some PHP tutorials, tips and other web development ideas, tips and tricks etc.</p>
<p>for today i will discuss about <strong><a href="http://danieldumas.com/php-logical-operators.php">PHP Logical Operators</a></strong>.</p>
<p>To link together related conditions in a simple and elegant manner, we can use <span id="more-1220"></span>one of PHP&#8217;s four <strong>Logical Operators</strong> -logical <strong>AND</strong>, logical <strong>OR</strong>, logical <strong>XOR</strong>, and logical <strong>NOT</strong>-as illustrated in the following listing.</p>
<pre class="php" name="code">

&lt;?php
// define some variables
$username = 'daniel';
$password = 'dumas';
$saveCookie = 1;
$status = 1;

// logical AND
// returns true if all conditions are true
// returns true here
$result = (($username == 'daniel') &amp;&amp; ($password == 'dumas'));

// logical OR
// returns true if any conditions is true
// returns false here
$result = (($status &lt; 1) || ($saveCookie == 0)); 

// logical NOT
// returns true if the condition is false and vice-versa
// returns false
$result = !($saveCookie == 1); 

// logical XOR
// returns true if any of the two conditions are true
// returns false if both conditions are true
// returns false here

$result = (($status == 1) xor ($saveCookie == 1));

?&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-logical-operators.php&amp;t=PHP+Logical+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-logical-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-logical-operators.php&amp;title=PHP+Logical+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-logical-operators.php&amp;title=PHP+Logical+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-logical-operators.php&amp;title=PHP+Logical+Operators&amp;srcUrl=http://danieldumas.com/php-logical-operators.php&amp;srcTitle=PHP+Logical+Operators&amp;snippet=Hey%20guys%21%20welcome%20me%20back%21%20yes%2C%20i%20am%20finally%20back%20again.%20i%20been%20away%20for%20a%20long%20time%2C%20but%20i%20am%20now%20back%20again%20in%20the%20blogosphere%20to%20share%20some%20PHP%20tutorials%2C%20tips%20and%20other%20web%20development%20ideas%2C%20tips%20and%20tricks%20etc.%0D%0A%0D%0Afor%20today%20i%20will%20discuss%20about%20PHP%20Logical%20Operators.%0D%0A%0D%0ATo%20link%20together%20relate" 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-logical-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-logical-operators.php&amp;title=PHP+Logical+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-logical-operators.php&amp;title=PHP+Logical+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-logical-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+Logical+Operators+-+http://bit.ly/zuXD7f&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-logical-operators.php&amp;submitHeadline=PHP+Logical+Operators&amp;submitSummary=Hey%20guys%21%20welcome%20me%20back%21%20yes%2C%20i%20am%20finally%20back%20again.%20i%20been%20away%20for%20a%20long%20time%2C%20but%20i%20am%20now%20back%20again%20in%20the%20blogosphere%20to%20share%20some%20PHP%20tutorials%2C%20tips%20and%20other%20web%20development%20ideas%2C%20tips%20and%20tricks%20etc.%0D%0A%0D%0Afor%20today%20i%20will%20discuss%20about%20PHP%20Logical%20Operators.%0D%0A%0D%0ATo%20link%20together%20relate&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-logical-operators.php&amp;t=PHP+Logical+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+Logical+Operators&amp;body=Link: http://danieldumas.com/php-logical-operators.php (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Hey%20guys%21%20welcome%20me%20back%21%20yes%2C%20i%20am%20finally%20back%20again.%20i%20been%20away%20for%20a%20long%20time%2C%20but%20i%20am%20now%20back%20again%20in%20the%20blogosphere%20to%20share%20some%20PHP%20tutorials%2C%20tips%20and%20other%20web%20development%20ideas%2C%20tips%20and%20tricks%20etc.%0D%0A%0D%0Afor%20today%20i%20will%20discuss%20about%20PHP%20Logical%20Operators.%0D%0A%0D%0ATo%20link%20together%20relate" 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-logical-operators.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Search and Replace</title>
		<link>http://danieldumas.com/wordpress-search-and-replace.php</link>
		<comments>http://danieldumas.com/wordpress-search-and-replace.php#comments</comments>
		<pubDate>Thu, 13 Jan 2011 18:28:48 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tips and Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://danieldumas.com/?p=1027</guid>
		<description><![CDATA[Hey everyone, I am alive again to blog after a long time haha welcome back to me. I&#8217;ve decided to blog again to make this site alive in search engines because i been out for a very long time, and my site traffic and ranks has decreased huhu.. alright so much for the blah blah.. [...]]]></description>
			<content:encoded><![CDATA[<p>Hey everyone, I am alive again to blog after a long time haha welcome back to me. I&#8217;ve decided to blog again to make this site alive in search engines because i been out for a very long time, and my site traffic and ranks has decreased huhu.. alright so much for the blah blah..</p>
<p>well today I&#8217;ll share some ways on how to <strong>Search and Replace</strong> datas or texts in <strong>WordPress</strong>. this will be useful when you are transferring a wordpress blog from one domain to another or if you&#8217;ve developed a wordpress site on your localhost and you&#8217;re gonna upload it to an online server or on your own domain, of course you need to update the paths on your posts.</p>
<p>for example you&#8217;ve developed a wordpress site on your local machine and you installed it on http://localhost/wordpress, when you transfer the site into a live server, you need to change that path in your <span id="more-1027"></span>database for wordpress to display your blog posts or menu links correctly, and not only that &#8211; there may be times that you hardcoded a link (eg. images,post) in your blog post. i dont know for you, but for me updating it one by one is a no no.. i mean why are you gonna do it manually, when you can do it automatically? right? right? or left? haha..</p>
<p>Here are some other ways or situations on when you can use the <strong>search and replace function</strong>.</p>
<p><strong>1. Correcting a typographical Error</strong> &#8211; you discovered that one of the words you frequently use was mispelled, for example instead of typing a bacon, you are typing in and using the word vacon with a &#8220;V&#8221; all the time (haha..)</p>
<p><strong>2. Updating a Name/Word </strong>- you want to change <strong>word1 </strong>to <strong>word2, </strong>or <strong>name1 </strong>to <strong>name2</strong></p>
<p><strong>3. Deleting Weird Characters </strong>- you are copying and pasting articles from one site or documents and you didn&#8217;t noticed that some special characters are also copied eg. Â, ♠ , ¶ ,Æ and so on..</p>
<p>Here are some methods that you can do to <strong>search and replace </strong> texts in wordpress database or blog posts.</p>
<p><strong>1. using MySQL search and replace function within PHPMYADMIN</strong></p>
<p>open your wordpress database using phpmyadmin, click the <strong>SQL </strong>tab and enter the following codes:</p>
<pre class="php" name="code">UPDATE wp_posts SET post_content = REPLACE (
post_content,
'OLD TEXT',
'NEW TEXT');</pre>
<p>the code above uses the <strong>MySQL replace </strong>function to first search the OLD TEXT in the wp_posts table then post_content field, and when found replace it with the NEW TEXT.</p>
<p>you can search and replace datas from any tables/table fields in the database. you can also use this method on any applications that uses mysql as a database.</p>
<p><strong>2. using WordPress Search and Replace Plugin</strong></p>
<p>same functionality as the mysql replace function, the only difference is this plugin provides a user interface within the wordpress admin panel. you can download the plugin here.<a href="http://wordpress.org/extend/plugins/search-and-replace/" target="_blank"> http://wordpress.org/extend/plugins/search-and-replace/</a></p>
<p>NOTE: Don&#8217;t forget to create a<strong> back up of your database</strong> <em>first </em>before trying any of the methods above. ok? it&#8217;s better to be sure, right? <img src='http://danieldumas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Enjoy! please share.</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-search-and-replace.php&amp;t=Wordpress+Search+and+Replace" 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-search-and-replace.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-search-and-replace.php&amp;title=Wordpress+Search+and+Replace" 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-search-and-replace.php&amp;title=Wordpress+Search+and+Replace" 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-search-and-replace.php&amp;title=Wordpress+Search+and+Replace&amp;srcUrl=http://danieldumas.com/wordpress-search-and-replace.php&amp;srcTitle=Wordpress+Search+and+Replace&amp;snippet=Hey%20everyone%2C%20I%20am%20alive%20again%20to%20blog%20after%20a%20long%20time%20haha%20welcome%20back%20to%20me.%20I%27ve%20decided%20to%20blog%20again%20to%20make%20this%20site%20alive%20in%20search%20engines%20because%20i%20been%20out%20for%20a%20very%20long%20time%2C%20and%20my%20site%20traffic%20and%20ranks%20has%20decreased%20huhu..%20alright%20so%20much%20for%20the%20blah%20blah..%0D%0A%0D%0Awell%20today%20I%27ll%20sh" 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-search-and-replace.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-search-and-replace.php&amp;title=Wordpress+Search+and+Replace" 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-search-and-replace.php&amp;title=Wordpress+Search+and+Replace" 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-search-and-replace.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=Wordpress+Search+and+Replace+-+http://bit.ly/dI4Vvp&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-search-and-replace.php&amp;submitHeadline=Wordpress+Search+and+Replace&amp;submitSummary=Hey%20everyone%2C%20I%20am%20alive%20again%20to%20blog%20after%20a%20long%20time%20haha%20welcome%20back%20to%20me.%20I%27ve%20decided%20to%20blog%20again%20to%20make%20this%20site%20alive%20in%20search%20engines%20because%20i%20been%20out%20for%20a%20very%20long%20time%2C%20and%20my%20site%20traffic%20and%20ranks%20has%20decreased%20huhu..%20alright%20so%20much%20for%20the%20blah%20blah..%0D%0A%0D%0Awell%20today%20I%27ll%20sh&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-search-and-replace.php&amp;t=Wordpress+Search+and+Replace" 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=Wordpress+Search+and+Replace&amp;body=Link: http://danieldumas.com/wordpress-search-and-replace.php (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Hey%20everyone%2C%20I%20am%20alive%20again%20to%20blog%20after%20a%20long%20time%20haha%20welcome%20back%20to%20me.%20I%27ve%20decided%20to%20blog%20again%20to%20make%20this%20site%20alive%20in%20search%20engines%20because%20i%20been%20out%20for%20a%20very%20long%20time%2C%20and%20my%20site%20traffic%20and%20ranks%20has%20decreased%20huhu..%20alright%20so%20much%20for%20the%20blah%20blah..%0D%0A%0D%0Awell%20today%20I%27ll%20sh" 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-search-and-replace.php/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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); [...]]]></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>13</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 [...]]]></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 . '@'. [...]]]></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>8</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 [...]]]></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>2</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 [...]]]></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>7</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 [...]]]></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 [...]]]></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>
	</channel>
</rss>

