<?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 Best Practices For Beginners</title>
	<atom:link href="http://fwebde.com/php/best-practices/feed/" rel="self" type="application/rss+xml" />
	<link>http://fwebde.com/php/best-practices/</link>
	<description>Helping people to make fantastic websites, whether you are a designer, a developer, or someone just who loves websites.</description>
	<lastBuildDate>Fri, 15 Jul 2011 11:19:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Refundacija</title>
		<link>http://fwebde.com/php/best-practices/comment-page-1/#comment-1702</link>
		<dc:creator>Refundacija</dc:creator>
		<pubDate>Tue, 01 Jun 2010 16:03:45 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=2261#comment-1702</guid>
		<description>Hello Eric, I&#039;m a php beginner and this article is right for me :) I&#039;m in the proces of creating my first simple app, so thanks for the tips, really appreciated. 
Will try Codeigniter in few months as you suggest.</description>
		<content:encoded><![CDATA[<p>Hello Eric, I'm a php beginner and this article is right for me :) I'm in the proces of creating my first simple app, so thanks for the tips, really appreciated.<br />
Will try Codeigniter in few months as you suggest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Bannatyne</title>
		<link>http://fwebde.com/php/best-practices/comment-page-1/#comment-1511</link>
		<dc:creator>Eric Bannatyne</dc:creator>
		<pubDate>Fri, 16 Apr 2010 22:24:01 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=2261#comment-1511</guid>
		<description>Ah, I see what you mean :)</description>
		<content:encoded><![CDATA[<p>Ah, I see what you mean :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cany000n</title>
		<link>http://fwebde.com/php/best-practices/comment-page-1/#comment-1510</link>
		<dc:creator>Cany000n</dc:creator>
		<pubDate>Fri, 16 Apr 2010 16:30:38 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=2261#comment-1510</guid>
		<description>@eric
i was just joking, It was in rapport being strictly as possible, in fact, not like my english is ;)  Bookmarked. ++</description>
		<content:encoded><![CDATA[<p>@eric<br />
i was just joking, It was in rapport being strictly as possible, in fact, not like my english is ;)  Bookmarked. ++</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Bannatyne</title>
		<link>http://fwebde.com/php/best-practices/comment-page-1/#comment-1508</link>
		<dc:creator>Eric Bannatyne</dc:creator>
		<pubDate>Fri, 16 Apr 2010 15:03:21 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=2261#comment-1508</guid>
		<description>That&#039;s probably a bit better. And it is, unfortunately, something that I forget to use all the time!</description>
		<content:encoded><![CDATA[<p>That's probably a bit better. And it is, unfortunately, something that I forget to use all the time!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cany000n</title>
		<link>http://fwebde.com/php/best-practices/comment-page-1/#comment-1507</link>
		<dc:creator>Cany000n</dc:creator>
		<pubDate>Fri, 16 Apr 2010 13:25:13 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=2261#comment-1507</guid>
		<description>&lt;pre lang=&quot;PHP&quot;&gt;
$a = hugeFunction();
 
while ($c === $someValue) {
    echo $c + $a;
    // blah
}
&lt;/pre&gt;

Better, no? Also little bit faster. ;)</description>
		<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$a</span> <span style="color: #339933;">=</span> hugeFunction<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span> <span style="color: #339933;">===</span> <span style="color: #000088;">$someValue</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$c</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$a</span><span style="color: #339933;">;</span>
    <span style="color: #666666; font-style: italic;">// blah</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Better, no? Also little bit faster. ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Bannatyne</title>
		<link>http://fwebde.com/php/best-practices/comment-page-1/#comment-1506</link>
		<dc:creator>Eric Bannatyne</dc:creator>
		<pubDate>Thu, 15 Apr 2010 23:19:05 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=2261#comment-1506</guid>
		<description>Did I say that? I guess I may not have been completely clear with that. I was saying that you should remember to use quotes around the index.

But that is a good point to remember :)</description>
		<content:encoded><![CDATA[<p>Did I say that? I guess I may not have been completely clear with that. I was saying that you should remember to use quotes around the index.</p>
<p>But that is a good point to remember :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James - SEOHeap</title>
		<link>http://fwebde.com/php/best-practices/comment-page-1/#comment-1504</link>
		<dc:creator>James - SEOHeap</dc:creator>
		<pubDate>Thu, 15 Apr 2010 19:23:10 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=2261#comment-1504</guid>
		<description>echo &#039;asdf &#039;, $a, &#039; asdf&#039;;
Using commas instead of creating a new string.
Well, you learn something new every day. Thanks.</description>
		<content:encoded><![CDATA[<p>echo 'asdf ', $a, ' asdf';<br />
Using commas instead of creating a new string.<br />
Well, you learn something new every day. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://fwebde.com/php/best-practices/comment-page-1/#comment-1502</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Thu, 15 Apr 2010 16:45:07 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=2261#comment-1502</guid>
		<description>Short tags are great for a lot of things especially improving code readability. When you have a large chunk of html with sporadic variables placed it is much easier to read  more than .

Php isn&#039;t a strict language. You&#039;re asking people to slow down their scripts with superfluous code. This isn&#039;t C, unless you&#039;re using OOP you don&#039;t need to declare your variables.
2 assignments
$foo = array();
$foo[&#039;bar&#039;] = &quot;&quot;;

1 assignment
$foo[&#039;bar&#039;] = &quot;&quot;;

I like a lot of your other suggestions though.</description>
		<content:encoded><![CDATA[<p>Short tags are great for a lot of things especially improving code readability. When you have a large chunk of html with sporadic variables placed it is much easier to read  more than .</p>
<p>Php isn't a strict language. You're asking people to slow down their scripts with superfluous code. This isn't C, unless you're using OOP you don't need to declare your variables.<br />
2 assignments<br />
$foo = array();<br />
$foo['bar'] = "";</p>
<p>1 assignment<br />
$foo['bar'] = "";</p>
<p>I like a lot of your other suggestions though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mario</title>
		<link>http://fwebde.com/php/best-practices/comment-page-1/#comment-1495</link>
		<dc:creator>mario</dc:creator>
		<pubDate>Wed, 14 Apr 2010 13:05:58 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=2261#comment-1495</guid>
		<description>&quot;Prefer Single Quoted Strings When Possible&quot;
Repeating silly assumptions over and over doesn&#039;t make them true.
The PHP parser (and tokenizer!) have been optimized quite sime time ago. There is no factual speed advantage in using single quotes, in many cases double quotes are actually faster. This has been posted all over the tubes. Read up.

And then, speed difference in string quotation should be the least of your worries. If you are string concating database queries and not using parameterized SQL, this *SLIGHTLY* outweights anything else speed-wise. (Let&#039;s not get started about security even.)
So panicking about coding style and quotation method is not appropriate if you don&#039;t even master the basics.</description>
		<content:encoded><![CDATA[<p>"Prefer Single Quoted Strings When Possible"<br />
Repeating silly assumptions over and over doesn't make them true.<br />
The PHP parser (and tokenizer!) have been optimized quite sime time ago. There is no factual speed advantage in using single quotes, in many cases double quotes are actually faster. This has been posted all over the tubes. Read up.</p>
<p>And then, speed difference in string quotation should be the least of your worries. If you are string concating database queries and not using parameterized SQL, this *SLIGHTLY* outweights anything else speed-wise. (Let's not get started about security even.)<br />
So panicking about coding style and quotation method is not appropriate if you don't even master the basics.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SeanJA</title>
		<link>http://fwebde.com/php/best-practices/comment-page-1/#comment-1493</link>
		<dc:creator>SeanJA</dc:creator>
		<pubDate>Wed, 14 Apr 2010 12:10:49 +0000</pubDate>
		<guid isPermaLink="false">http://fwebde.com/?p=2261#comment-1493</guid>
		<description>I think your best suggestion is &quot;try a framework&quot;.</description>
		<content:encoded><![CDATA[<p>I think your best suggestion is "try a framework".</p>
]]></content:encoded>
	</item>
</channel>
</rss>

