<?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 Code shortcuts to if/else statements</title>
	<atom:link href="http://php-thoughts.cubedwater.com/2009/php-code-shortcuts-to-ifelse-statements/feed/" rel="self" type="application/rss+xml" />
	<link>http://php-thoughts.cubedwater.com/2009/php-code-shortcuts-to-ifelse-statements/</link>
	<description>On PHP and things related</description>
	<lastBuildDate>Thu, 29 Jul 2010 07:57:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: john dow</title>
		<link>http://php-thoughts.cubedwater.com/2009/php-code-shortcuts-to-ifelse-statements/comment-page-1/#comment-5036</link>
		<dc:creator>john dow</dc:creator>
		<pubDate>Mon, 07 Jun 2010 15:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://php-thoughts.cubedwater.com/?p=131#comment-5036</guid>
		<description>do not use 
if($page = LAST_PAGE) 

better use
if($page == LAST_PAGE) {
   ...
}

due to readability und prevent side-effects</description>
		<content:encoded><![CDATA[<p>do not use<br />
if($page = LAST_PAGE) </p>
<p>better use<br />
if($page == LAST_PAGE) {<br />
   &#8230;<br />
}</p>
<p>due to readability und prevent side-effects</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonah</title>
		<link>http://php-thoughts.cubedwater.com/2009/php-code-shortcuts-to-ifelse-statements/comment-page-1/#comment-3782</link>
		<dc:creator>Jonah</dc:creator>
		<pubDate>Sat, 29 Aug 2009 17:51:33 +0000</pubDate>
		<guid isPermaLink="false">http://php-thoughts.cubedwater.com/?p=131#comment-3782</guid>
		<description>@David Johnston

This is definitely possible but this question doesn&#039;t really belong here..  I recommend asking on this website: http://stackoverflow.com/</description>
		<content:encoded><![CDATA[<p>@David Johnston</p>
<p>This is definitely possible but this question doesn&#8217;t really belong here..  I recommend asking on this website: <a href="http://stackoverflow.com/" rel="nofollow">http://stackoverflow.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Johnston</title>
		<link>http://php-thoughts.cubedwater.com/2009/php-code-shortcuts-to-ifelse-statements/comment-page-1/#comment-3780</link>
		<dc:creator>David Johnston</dc:creator>
		<pubDate>Sat, 29 Aug 2009 13:51:53 +0000</pubDate>
		<guid isPermaLink="false">http://php-thoughts.cubedwater.com/?p=131#comment-3780</guid>
		<description>Hi Jonah, thanks for the info. Wonderfing if you could assist me.  Looking for a php code to do the following. I&#039;d like to show a swf banner 400x92 pixels on a page. However if the banner file can&#039;t be found in a folder called &quot;banners&quot; then I would like it not to show.
If BANNER1.SWF is found, show it, else leave blank.
if BANNER2.SWF is found, show it, else leave blank.
and so on for about 8 banners.
Is there anyway that when it&#039;s left blank that it doesn&#039;t take up that space? Meaning, the page would move up?

Thanks ahead of time.
David</description>
		<content:encoded><![CDATA[<p>Hi Jonah, thanks for the info. Wonderfing if you could assist me.  Looking for a php code to do the following. I&#8217;d like to show a swf banner 400&#215;92 pixels on a page. However if the banner file can&#8217;t be found in a folder called &#8220;banners&#8221; then I would like it not to show.<br />
If BANNER1.SWF is found, show it, else leave blank.<br />
if BANNER2.SWF is found, show it, else leave blank.<br />
and so on for about 8 banners.<br />
Is there anyway that when it&#8217;s left blank that it doesn&#8217;t take up that space? Meaning, the page would move up?</p>
<p>Thanks ahead of time.<br />
David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Okapi</title>
		<link>http://php-thoughts.cubedwater.com/2009/php-code-shortcuts-to-ifelse-statements/comment-page-1/#comment-306</link>
		<dc:creator>Okapi</dc:creator>
		<pubDate>Fri, 20 Mar 2009 02:58:46 +0000</pubDate>
		<guid isPermaLink="false">http://php-thoughts.cubedwater.com/?p=131#comment-306</guid>
		<description>Ah the good old Ternary Operator (See more: http://en.wikipedia.org/wiki/Ternary_operation). Available in other languages too.

I didn&#039;t know about the AND and OR operators! Thanks</description>
		<content:encoded><![CDATA[<p>Ah the good old Ternary Operator (See more: <a href="http://en.wikipedia.org/wiki/Ternary_operation)" rel="nofollow">http://en.wikipedia.org/wiki/Ternary_operation)</a>. Available in other languages too.</p>
<p>I didn&#8217;t know about the AND and OR operators! Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Conor</title>
		<link>http://php-thoughts.cubedwater.com/2009/php-code-shortcuts-to-ifelse-statements/comment-page-1/#comment-149</link>
		<dc:creator>Conor</dc:creator>
		<pubDate>Sat, 21 Feb 2009 13:43:37 +0000</pubDate>
		<guid isPermaLink="false">http://php-thoughts.cubedwater.com/?p=131#comment-149</guid>
		<description>thanks for the tutorial!</description>
		<content:encoded><![CDATA[<p>thanks for the tutorial!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
