<?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>PHP Tutorials Code Snippets and Php Tips &#187; if</title>
	<atom:link href="http://readytousesolutions.com/phpblog/tag/if/feed/" rel="self" type="application/rss+xml" />
	<link>http://readytousesolutions.com/phpblog</link>
	<description>PHP tutorials - Examples of the most useful scripts</description>
	<lastBuildDate>Thu, 23 Sep 2010 06:54:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PHP Tutorial : If condition in the short way (shorthand if)</title>
		<link>http://readytousesolutions.com/phpblog/php-tutorial-if-condition-in-the-short-way/</link>
		<comments>http://readytousesolutions.com/phpblog/php-tutorial-if-condition-in-the-short-way/#comments</comments>
		<pubDate>Thu, 21 May 2009 12:52:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Basic PHP]]></category>
		<category><![CDATA[if]]></category>
		<category><![CDATA[if condition]]></category>
		<category><![CDATA[if function]]></category>
		<category><![CDATA[php if]]></category>
		<category><![CDATA[short if]]></category>
		<category><![CDATA[shorthand if]]></category>

		<guid isPermaLink="false">http://www.crivionweb.com/phpblog/?p=225</guid>
		<description><![CDATA[Do you know basical php if() condition right? But, my questions is : do you know the short way? If not, I will show you the diferrence,: &#60;?php $a=1; $b=3; $c = $a+$b; //THE SHORT WAY COMES print $c == &#8230; <a href="http://readytousesolutions.com/phpblog/php-tutorial-if-condition-in-the-short-way/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Do you know basical php if() condition right? But, my questions is : do you know the short way? If not, I will show you the diferrence,:</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
$a=<span class="phpNumber">1</span><span class="phpText">;</span>
$b<span class="phpOperator">=</span>3;
$c <span class="phpOperator">=</span> $a<span class="phpOperator">+</span>$b<span class="phpText">;</span>
<span class="phpComment">//THE SHORT WAY COMES
</span><span class="phpFunction">print</span> $c <span class="phpOperator"><span class="phpOperator">=</span>=</span> <span class="phpNumber">3</span> <span class="phpOperator">?</span> <span class="phpString">"yes $c <span class="phpOperator">=</span> <span class="phpNumber">3</span>"</span> <span class="phpOperator">:</span> <span class="phpString">"no $c <span class="phpOperator">!</span><span class="phpOperator">=</span> <span class="phpNumber">3</span>"</span><span class="phpText">;</span>
<span class="phpComment">//THE <span class="phpString">"COMMON"</span> WAY SAME THING
</span>
<span class="phpKeyword">
if<span class="phpOperator">(</span></span>$c <span class="phpOperator"><span class="phpOperator">=</span>=</span><span class="phpNumber">3</span><span class="phpOperator">)</span> <span class="phpOperator">{</span>
<span class="phpFunction">print</span> <span class="phpString">"yes $c <span class="phpOperator">=</span> <span class="phpNumber">3</span>"</span><span class="phpText">;</span>
<span class="phpKeyword"><span class="phpOperator">}</span><span class="htmlText">else</span><span class="phpOperator">{</span></span>
<span class="phpFunction">print</span> <span class="phpString">"no $c <span class="phpOperator">!</span><span class="phpOperator">=</span> <span class="phpNumber">3</span>"</span><span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://readytousesolutions.com/phpblog/php-tutorial-if-condition-in-the-short-way/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

