<?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 Single vs. Double Quotes</title>
	<atom:link href="http://classyllama.com/development/php/php-single-vs-double-quotes/feed/" rel="self" type="application/rss+xml" />
	<link>http://classyllama.com/development/php/php-single-vs-double-quotes/</link>
	<description>Classy Llama Studios is a team of developers, designers and marketers specializing in Magento, Wordpress and Custom Web Application development.</description>
	<lastBuildDate>Thu, 22 Jul 2010 04:22:21 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: cam</title>
		<link>http://classyllama.com/development/php/php-single-vs-double-quotes/comment-page-1/#comment-65</link>
		<dc:creator>cam</dc:creator>
		<pubDate>Wed, 10 Feb 2010 11:03:27 +0000</pubDate>
		<guid isPermaLink="false">http://classyllama.com/?p=294#comment-65</guid>
		<description>Most programming languages don&#039;t give you that much latitude when it comes to quotes. Of course, the guys that brought us PHP are kind of on the dyslexic side when it comes to a lot of things. The name itself for example. How exactly to you get PHP from Hypertext Pre-Processor? Shouldn&#039;t it be HPP? 

And what about the nastiness that is a PHP foreach array loop?

&lt;code&gt;
$arr = array(1, 2, 3, 4);
foreach ($arr as $value) {
  // do something
}
&lt;/code&gt;

Any normal human being would read this as:

for each array as value do something

Wouldn&#039;t it make far more sense to do something like:

&lt;code&gt;
$arr = array(1, 2, 3, 4);
foreach ($value in $arr) {
  // do something
}
&lt;/code&gt;

for each value in array do something

Of course, those are just my thoughts on it - YMMV.</description>
		<content:encoded><![CDATA[<p>Most programming languages don&#8217;t give you that much latitude when it comes to quotes. Of course, the guys that brought us PHP are kind of on the dyslexic side when it comes to a lot of things. The name itself for example. How exactly to you get PHP from Hypertext Pre-Processor? Shouldn&#8217;t it be HPP? </p>
<p>And what about the nastiness that is a PHP foreach array loop?</p>
<p><code><br />
$arr = array(1, 2, 3, 4);<br />
foreach ($arr as $value) {<br />
  // do something<br />
}<br />
</code></p>
<p>Any normal human being would read this as:</p>
<p>for each array as value do something</p>
<p>Wouldn&#8217;t it make far more sense to do something like:</p>
<p><code><br />
$arr = array(1, 2, 3, 4);<br />
foreach ($value in $arr) {<br />
  // do something<br />
}<br />
</code></p>
<p>for each value in array do something</p>
<p>Of course, those are just my thoughts on it &#8211; YMMV.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
