<?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"
	>
<channel>
	<title>Comments on: My top 5 PHP tips and tricks</title>
	<atom:link href="http://jamesangus.ucantblamem.com/programming/my-top-5-php-tips-and-tricks/131/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamesangus.ucantblamem.com/programming/my-top-5-php-tips-and-tricks/131/</link>
	<description>Hi, I'm James Angus. I have a greed for learning, an obsession with all things web; I am in love with standards, accessibility, creating things for use by people and yes, this site was designed on a mac.</description>
	<pubDate>Fri, 16 May 2008 13:23:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Lee Haskings</title>
		<link>http://jamesangus.ucantblamem.com/programming/my-top-5-php-tips-and-tricks/131/#comment-284</link>
		<dc:creator>Lee Haskings</dc:creator>
		<pubDate>Wed, 12 Dec 2007 00:53:19 +0000</pubDate>
		<guid isPermaLink="false">http://jamesangus.ucantblamem.com/programming/my-top-5-php-tips-and-tricks/131/#comment-284</guid>
		<description>Nice little set of tips there - that '++$i' is a new on for me which Ill try and remember for future work!

On the topic of the 'if ($var) {}' tip (which you mentioned to me last time we met) I have to give a warning to people that this only works with variables and NOT defines such as when generated by:

define ('define_name', 'define_value');

If you have NOT SET the define then the following will be true:
 


As 'define_name' will equate to 'define_name'. To solve this make sure for any defines that you use:



To check a define/constant has been set.</description>
		<content:encoded><![CDATA[<p>Nice little set of tips there - that &#8216;++$i&#8217; is a new on for me which Ill try and remember for future work!</p>
<p>On the topic of the &#8216;if ($var) {}&#8217; tip (which you mentioned to me last time we met) I have to give a warning to people that this only works with variables and NOT defines such as when generated by:</p>
<p>define (&#8217;define_name&#8217;, &#8216;define_value&#8217;);</p>
<p>If you have NOT SET the define then the following will be true:</p>
<p>As &#8216;define_name&#8217; will equate to &#8216;define_name&#8217;. To solve this make sure for any defines that you use:</p>
<p>To check a define/constant has been set.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
