<?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: PHP/Perl If trick using  ? and :</title>
	<atom:link href="http://notan00b.com/2009/07/php-if-trick-using-and/feed/" rel="self" type="application/rss+xml" />
	<link>http://notan00b.com/2009/07/php-if-trick-using-and/</link>
	<description>Tutorials, Scripts, and Rants</description>
	<lastBuildDate>Thu, 01 Jul 2010 05:02:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: pyr0t3chnician</title>
		<link>http://notan00b.com/2009/07/php-if-trick-using-and/comment-page-1/#comment-26</link>
		<dc:creator>pyr0t3chnician</dc:creator>
		<pubDate>Tue, 04 Aug 2009 19:14:50 +0000</pubDate>
		<guid isPermaLink="false">http://notan00b.com/?p=107#comment-26</guid>
		<description>Yeah, it does run faster.  Doing just a simple timer using microtime() on my computer, it took .0002 seconds to echo a line.  It took about .0007 - .0009 seconds to do an inline if statement.  To do a full if/else statement, it was about .0001 - .0015 seconds.  But hey, I have a slow laptop.

I think a lot depends on the complexity of the if statement as well.  I have one that has 3-4 conditions and sub-if statements in the same line of text.  The only thing I don&#039;t like about them is that it makes your code confusing, and it may take a minute to remember exactly what that line was supposed to be doing, especially in cases where you have 3-4 conditions.</description>
		<content:encoded><![CDATA[<p>Yeah, it does run faster.  Doing just a simple timer using microtime() on my computer, it took .0002 seconds to echo a line.  It took about .0007 &#8211; .0009 seconds to do an inline if statement.  To do a full if/else statement, it was about .0001 &#8211; .0015 seconds.  But hey, I have a slow laptop.</p>
<p>I think a lot depends on the complexity of the if statement as well.  I have one that has 3-4 conditions and sub-if statements in the same line of text.  The only thing I don&#8217;t like about them is that it makes your code confusing, and it may take a minute to remember exactly what that line was supposed to be doing, especially in cases where you have 3-4 conditions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://notan00b.com/2009/07/php-if-trick-using-and/comment-page-1/#comment-24</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 04 Aug 2009 17:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://notan00b.com/?p=107#comment-24</guid>
		<description>I would assume that with the reduction in lines and characters the abbreviated version would run faster, albeit small. Is this true?</description>
		<content:encoded><![CDATA[<p>I would assume that with the reduction in lines and characters the abbreviated version would run faster, albeit small. Is this true?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pyr0t3chnician</title>
		<link>http://notan00b.com/2009/07/php-if-trick-using-and/comment-page-1/#comment-7</link>
		<dc:creator>pyr0t3chnician</dc:creator>
		<pubDate>Wed, 22 Jul 2009 00:40:44 +0000</pubDate>
		<guid isPermaLink="false">http://notan00b.com/?p=107#comment-7</guid>
		<description>Yup, I definitely didn&#039;t learn it until I saw it in other people&#039;s code and was a little freaked by it.  Made it a whole lot simpler tho.</description>
		<content:encoded><![CDATA[<p>Yup, I definitely didn&#8217;t learn it until I saw it in other people&#8217;s code and was a little freaked by it.  Made it a whole lot simpler tho.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ttyler333</title>
		<link>http://notan00b.com/2009/07/php-if-trick-using-and/comment-page-1/#comment-6</link>
		<dc:creator>ttyler333</dc:creator>
		<pubDate>Wed, 22 Jul 2009 00:06:13 +0000</pubDate>
		<guid isPermaLink="false">http://notan00b.com/?p=107#comment-6</guid>
		<description>haha, out of all the php i know, i didnt know you could do 
&quot; ($id==1?&quot;Guest, &quot;... learned a thing thanks again</description>
		<content:encoded><![CDATA[<p>haha, out of all the php i know, i didnt know you could do<br />
&#8221; ($id==1?&#8221;Guest, &#8220;&#8230; learned a thing thanks again</p>
]]></content:encoded>
	</item>
</channel>
</rss>
