<?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: Converting PHP Associative Arrays to Variables</title>
	<atom:link href="http://www.itsananderson.com/2009/01/converting-php-associative-arrays-to-variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.itsananderson.com/2009/01/converting-php-associative-arrays-to-variables/</link>
	<description>WordPress, Programming, Life</description>
	<lastBuildDate>Fri, 13 Jan 2012 09:00:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Buddy Logan</title>
		<link>http://www.itsananderson.com/2009/01/converting-php-associative-arrays-to-variables/#comment-404</link>
		<dc:creator>Buddy Logan</dc:creator>
		<pubDate>Thu, 17 Dec 2009 10:01:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.itsananderson.com/?p=471#comment-404</guid>
		<description>Nevertheless, a good explanation of variable variables - something else many PHP developers are unaware of and, most certainly, most beginners have never heard of.  I find variable variables useful in many situations.</description>
		<content:encoded><![CDATA[<p>Nevertheless, a good explanation of variable variables &#8211; something else many PHP developers are unaware of and, most certainly, most beginners have never heard of.  I find variable variables useful in many situations.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Ohrn</title>
		<link>http://www.itsananderson.com/2009/01/converting-php-associative-arrays-to-variables/#comment-119</link>
		<dc:creator>Nick Ohrn</dc:creator>
		<pubDate>Fri, 16 Jan 2009 05:53:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.itsananderson.com/?p=471#comment-119</guid>
		<description>Don&#039;t blame yourself too much.  It happens from time to time.  There are plenty of instances  in the past few years where I&#039;ve done something completely ridiculous, only to find out that I should have been using a library function call or a built-in language construct.  It&#039;s just part of the learning process.</description>
		<content:encoded><![CDATA[<p>Don&#8217;t blame yourself too much.  It happens from time to time.  There are plenty of instances  in the past few years where I&#8217;ve done something completely ridiculous, only to find out that I should have been using a library function call or a built-in language construct.  It&#8217;s just part of the learning process.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://www.itsananderson.com/2009/01/converting-php-associative-arrays-to-variables/#comment-118</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Fri, 16 Jan 2009 02:43:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.itsananderson.com/?p=471#comment-118</guid>
		<description>Wow, I&#039;m not sure how I missed that. Thanks for pointing it out. I&#039;ll edit the post so I don&#039;t lead anyone else astray.</description>
		<content:encoded><![CDATA[<p>Wow, I&#8217;m not sure how I missed that. Thanks for pointing it out. I&#8217;ll edit the post so I don&#8217;t lead anyone else astray.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Ohrn</title>
		<link>http://www.itsananderson.com/2009/01/converting-php-associative-arrays-to-variables/#comment-117</link>
		<dc:creator>Nick Ohrn</dc:creator>
		<pubDate>Thu, 15 Jan 2009 20:51:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.itsananderson.com/?p=471#comment-117</guid>
		<description>Nice try here, but you might want to take a look at &lt;code&gt;&lt;a href=&quot;http://us.php.net/extract&quot; rel=&quot;nofollow&quot;&gt;extract&lt;/a&gt;&lt;/code&gt;.  Nothing wrong with the way you&#039;re doing it, but the language has a built-in construct that accomplishes what you&#039;re doing manually with a for loop and quite a bit of overhead.  

The &quot;variable variables&quot; must be interpolated by the PHP interpreter in order to get the correct results and that causes the interpreter to take a while to do what it needs to do (although a &quot;while&quot; might be just extra milliseconds depending on the size of the array, you&#039;d have to profile to be sure.</description>
		<content:encoded><![CDATA[<p>Nice try here, but you might want to take a look at <code><a href="http://us.php.net/extract" rel="nofollow">extract</a></code>.  Nothing wrong with the way you&#8217;re doing it, but the language has a built-in construct that accomplishes what you&#8217;re doing manually with a for loop and quite a bit of overhead.  </p>
<p>The &#8220;variable variables&#8221; must be interpolated by the PHP interpreter in order to get the correct results and that causes the interpreter to take a while to do what it needs to do (although a &#8220;while&#8221; might be just extra milliseconds depending on the size of the array, you&#8217;d have to profile to be sure.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

