<?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 Tip: Inline StdClass Object Creation</title>
	<atom:link href="http://www.tierra-innovation.com/blog/2009/06/26/php-tip-inline-stdclass-object-creation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tierra-innovation.com/blog/2009/06/26/php-tip-inline-stdclass-object-creation/</link>
	<description>Innovation in technology, strategy and design</description>
	<lastBuildDate>Sun, 29 Nov 2009 01:55:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: joe</title>
		<link>http://www.tierra-innovation.com/blog/2009/06/26/php-tip-inline-stdclass-object-creation/comment-page-1/#comment-400</link>
		<dc:creator>joe</dc:creator>
		<pubDate>Sun, 29 Nov 2009 01:55:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.tierra-innovation.com/blog/?p=618#comment-400</guid>
		<description>I&#039;m new to php.  I&#039;ve inherited a codeigniter project, and I was about to scour the web for a solution and yours was at the top of the list! Fantastic tip Thanks!</description>
		<content:encoded><![CDATA[<p>I&#8217;m new to php.  I&#8217;ve inherited a codeigniter project, and I was about to scour the web for a solution and yours was at the top of the list! Fantastic tip Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Lee</title>
		<link>http://www.tierra-innovation.com/blog/2009/06/26/php-tip-inline-stdclass-object-creation/comment-page-1/#comment-312</link>
		<dc:creator>Robert Lee</dc:creator>
		<pubDate>Tue, 04 Aug 2009 00:22:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.tierra-innovation.com/blog/?p=618#comment-312</guid>
		<description>Also, PHP internally stores both object and arrays as hash-tables, so by storing in an object, you don&#039;t save any memory for storage like you would in (for example) Java (Java pojo&#039;s or even beans are far more memory efficient than HashMap&#039;s -- this is not true in PHP).</description>
		<content:encoded><![CDATA[<p>Also, PHP internally stores both object and arrays as hash-tables, so by storing in an object, you don&#8217;t save any memory for storage like you would in (for example) Java (Java pojo&#8217;s or even beans are far more memory efficient than HashMap&#8217;s &#8212; this is not true in PHP).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scotty Delicious</title>
		<link>http://www.tierra-innovation.com/blog/2009/06/26/php-tip-inline-stdclass-object-creation/comment-page-1/#comment-197</link>
		<dc:creator>Scotty Delicious</dc:creator>
		<pubDate>Fri, 26 Jun 2009 23:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.tierra-innovation.com/blog/?p=618#comment-197</guid>
		<description>@Doug: json_encode() works perfectly on associative arrays.

+1 to Balh on the point about mapping and sorting. That is a lot of free function you have to give up for object syntax. I guess as a developer you really have decide if there is a strong benefit from producing an object rather than an array.</description>
		<content:encoded><![CDATA[<p>@Doug: json_encode() works perfectly on associative arrays.</p>
<p>+1 to Balh on the point about mapping and sorting. That is a lot of free function you have to give up for object syntax. I guess as a developer you really have decide if there is a strong benefit from producing an object rather than an array.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://www.tierra-innovation.com/blog/2009/06/26/php-tip-inline-stdclass-object-creation/comment-page-1/#comment-196</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Fri, 26 Jun 2009 16:25:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.tierra-innovation.com/blog/?p=618#comment-196</guid>
		<description>I use stdclass objects mostly when I need to serialize them in json to the page to use in javascript.  I also think the syntax looks a little cleaner.</description>
		<content:encoded><![CDATA[<p>I use stdclass objects mostly when I need to serialize them in json to the page to use in javascript.  I also think the syntax looks a little cleaner.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Balh</title>
		<link>http://www.tierra-innovation.com/blog/2009/06/26/php-tip-inline-stdclass-object-creation/comment-page-1/#comment-195</link>
		<dc:creator>Balh</dc:creator>
		<pubDate>Fri, 26 Jun 2009 15:50:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.tierra-innovation.com/blog/?p=618#comment-195</guid>
		<description>Used to think objects where cooler than arrays too, but what usually your best best is to just use an array, then you have the nice sorting, mapping, etc. The type conversion to object is also not free.</description>
		<content:encoded><![CDATA[<p>Used to think objects where cooler than arrays too, but what usually your best best is to just use an array, then you have the nice sorting, mapping, etc. The type conversion to object is also not free.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.tierra-innovation.com/blog/2009/06/26/php-tip-inline-stdclass-object-creation/comment-page-1/#comment-194</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Fri, 26 Jun 2009 15:37:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.tierra-innovation.com/blog/?p=618#comment-194</guid>
		<description>sweet tip thanks!</description>
		<content:encoded><![CDATA[<p>sweet tip thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
