<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Short If-Else Structure</title>
	<atom:link href="http://www.frank-verhoeven.com/short-if-else-structure/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.frank-verhoeven.com/short-if-else-structure/</link>
	<description>Webdevelopment Blog</description>
	<lastBuildDate>Sun, 29 Jan 2012 20:42:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Bill</title>
		<link>http://www.frank-verhoeven.com/short-if-else-structure/comment-page-1/#comment-29548</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Thu, 14 Jul 2011 23:02:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=121#comment-29548</guid>
		<description>Terniary operators using 5.3+ i believe shorten it by one more parameter... into something like the following:

[code type=php]
&lt;?php
$input = &quot;xyz&quot;;

// using the above examples... php&lt;5.3
$return_ex = ($input)?$input:false;
/** this returns $input obviously...  **/

// using the above examples... php
[/code]

code is indeedy fun :)</description>
		<content:encoded><![CDATA[<p>Terniary operators using 5.3+ i believe shorten it by one more parameter&#8230; into something like the following:</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
2
3
4
5
6
7
8
9
10
11
12
13
</pre>
<pre><span class="php"><span class="php-script-tag">&lt;?php</span>
<span class="php-var">$input</span> <span class="php-operator">=</span> <span class="php-string">&quot;xyz&quot;</span>;

<span class="php-comment">// using the above examples... php&lt;5.3
</span>
<span class="php-var">$return_ex</span> <span class="php-operator">=</span> <span class="php-brackets">(</span><span class="php-var">$input</span><span class="php-brackets">)</span><span class="php-operator">?</span><span class="php-var">$input</span><span class="php-operator">:</span><span class="php-keyword">false</span>;
<span class="php-comment">/** this returns $input obviously...  **/</span>

<span class="php-comment">// using the above examples... php</span></span></pre>
</div>
<p>code is indeedy fun <img src='http://www.frank-verhoeven.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve</title>
		<link>http://www.frank-verhoeven.com/short-if-else-structure/comment-page-1/#comment-19977</link>
		<dc:creator>steve</dc:creator>
		<pubDate>Tue, 20 Jul 2010 01:36:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=121#comment-19977</guid>
		<description>does this subject very hard to work with?</description>
		<content:encoded><![CDATA[<p>does this subject very hard to work with?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shortened PHP</title>
		<link>http://www.frank-verhoeven.com/short-if-else-structure/comment-page-1/#comment-16867</link>
		<dc:creator>Shortened PHP</dc:creator>
		<pubDate>Wed, 25 Nov 2009 14:55:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=121#comment-16867</guid>
		<description>Good point Alexwebmaster there is some horrendous code out there which would only be worse had they used this format. It is useful though

Nothing you have not covered but another summary: &lt;a href=&quot;http://webtechmech.com/2009/11/short-php-if-statements.html&quot; rel=&quot;nofollow&quot;&gt;Short PHP statements&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Good point Alexwebmaster there is some horrendous code out there which would only be worse had they used this format. It is useful though</p>
<p>Nothing you have not covered but another summary: <a href="http://webtechmech.com/2009/11/short-php-if-statements.html" rel="nofollow">Short PHP statements</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rhellene joy Nonescan</title>
		<link>http://www.frank-verhoeven.com/short-if-else-structure/comment-page-1/#comment-15645</link>
		<dc:creator>Rhellene joy Nonescan</dc:creator>
		<pubDate>Sat, 05 Sep 2009 14:23:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=121#comment-15645</guid>
		<description>thankz hope you can answer this....</description>
		<content:encoded><![CDATA[<p>thankz hope you can answer this&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rhellene joy Nonescan</title>
		<link>http://www.frank-verhoeven.com/short-if-else-structure/comment-page-1/#comment-15644</link>
		<dc:creator>Rhellene joy Nonescan</dc:creator>
		<pubDate>Sat, 05 Sep 2009 14:20:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=121#comment-15644</guid>
		<description>Answer this,Created a flowchart and program that will accept a number from (1-7) and display the equivalent day of the work display &quot;Error&quot; for other numbers,use if-else and switch statement...</description>
		<content:encoded><![CDATA[<p>Answer this,Created a flowchart and program that will accept a number from (1-7) and display the equivalent day of the work display &#8220;Error&#8221; for other numbers,use if-else and switch statement&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brian</title>
		<link>http://www.frank-verhoeven.com/short-if-else-structure/comment-page-1/#comment-13108</link>
		<dc:creator>brian</dc:creator>
		<pubDate>Thu, 16 Apr 2009 04:26:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=121#comment-13108</guid>
		<description>thanks for the good article.
explanation was very clear on short if-else statement.</description>
		<content:encoded><![CDATA[<p>thanks for the good article.<br />
explanation was very clear on short if-else statement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee</title>
		<link>http://www.frank-verhoeven.com/short-if-else-structure/comment-page-1/#comment-58</link>
		<dc:creator>Lee</dc:creator>
		<pubDate>Sat, 04 Oct 2008 03:50:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=121#comment-58</guid>
		<description>Nice explaination. My problem with this syntax is that there aren&#039;t many people out there who know what this means. I always worry about readability. Though I do love single-line solutions...</description>
		<content:encoded><![CDATA[<p>Nice explaination. My problem with this syntax is that there aren&#8217;t many people out there who know what this means. I always worry about readability. Though I do love single-line solutions&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

