<?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: What is More Powerful Than list()</title>
	<atom:link href="/2010/08/27/php-what-is-more-powerful-than-list/feed/" rel="self" type="application/rss+xml" />
	<link>/2010/08/27/php-what-is-more-powerful-than-list/</link>
	<description>on web development</description>
	<lastBuildDate>Fri, 26 Oct 2018 21:40:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>By: Stoimen</title>
		<link>/2010/08/27/php-what-is-more-powerful-than-list/comment-page-1/#comment-14349</link>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
		<pubDate>Fri, 24 Jun 2011 18:29:16 +0000</pubDate>
		<guid isPermaLink="false">/?p=1933#comment-14349</guid>
		<description><![CDATA[@Does Not Matter - /2010/08/31/php-what-is-more-powerful-than-list-perhaps-extract/]]></description>
		<content:encoded><![CDATA[<p>@Does Not Matter &#8211; <a href="/2010/08/31/php-what-is-more-powerful-than-list-perhaps-extract/" rel="nofollow">/2010/08/31/php-what-is-more-powerful-than-list-perhaps-extract/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Does Not Matter</title>
		<link>/2010/08/27/php-what-is-more-powerful-than-list/comment-page-1/#comment-14348</link>
		<dc:creator><![CDATA[Does Not Matter]]></dc:creator>
		<pubDate>Fri, 24 Jun 2011 13:25:08 +0000</pubDate>
		<guid isPermaLink="false">/?p=1933#comment-14348</guid>
		<description><![CDATA[extract()]]></description>
		<content:encoded><![CDATA[<p>extract()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew</title>
		<link>/2010/08/27/php-what-is-more-powerful-than-list/comment-page-1/#comment-13352</link>
		<dc:creator><![CDATA[Matthew]]></dc:creator>
		<pubDate>Tue, 31 Aug 2010 22:08:18 +0000</pubDate>
		<guid isPermaLink="false">/?p=1933#comment-13352</guid>
		<description><![CDATA[There&#039;s always pass-by-reference - that&#039;s the traditional C-way to do things, anyway. 
&lt;pre lang=&quot;php&quot;&gt;
function getData($id, &amp;$records, &amp;$count) {...}
&lt;/pre&gt;
Disadvantage: Pass-by-reference isn&#039;t clear in the calling code]]></description>
		<content:encoded><![CDATA[<p>There&#8217;s always pass-by-reference &#8211; that&#8217;s the traditional C-way to do things, anyway. </p>
<pre lang="php">
function getData($id, &#038;$records, &#038;$count) {...}
</pre>
<p>Disadvantage: Pass-by-reference isn&#8217;t clear in the calling code</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip</title>
		<link>/2010/08/27/php-what-is-more-powerful-than-list/comment-page-1/#comment-13343</link>
		<dc:creator><![CDATA[Philip]]></dc:creator>
		<pubDate>Sat, 28 Aug 2010 09:39:33 +0000</pubDate>
		<guid isPermaLink="false">/?p=1933#comment-13343</guid>
		<description><![CDATA[There&#039;s one problem to this though, list() takes only numerical arrays and not associative arrays. If you return an associative array then list won&#039;t assign anything.

But then again, returning numerical arrays aren&#039;t as.. maintainable as returning associative arrays.

Maybe you should just return associative arrays or maybe objects.]]></description>
		<content:encoded><![CDATA[<p>There&#8217;s one problem to this though, list() takes only numerical arrays and not associative arrays. If you return an associative array then list won&#8217;t assign anything.</p>
<p>But then again, returning numerical arrays aren&#8217;t as.. maintainable as returning associative arrays.</p>
<p>Maybe you should just return associative arrays or maybe objects.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoimen</title>
		<link>/2010/08/27/php-what-is-more-powerful-than-list/comment-page-1/#comment-13341</link>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
		<pubDate>Fri, 27 Aug 2010 12:32:33 +0000</pubDate>
		<guid isPermaLink="false">/?p=1933#comment-13341</guid>
		<description><![CDATA[Actually this is a pretty good question! Well than this will fetch all the results only to return the count - which is stupid. Than you&#039;ve to have two methods - one for the list and another for the count. What happens often in my practice is that in many cases I need both the list and the count, while only for few sets I need a separate count method. It all depends of the use case, of course.]]></description>
		<content:encoded><![CDATA[<p>Actually this is a pretty good question! Well than this will fetch all the results only to return the count &#8211; which is stupid. Than you&#8217;ve to have two methods &#8211; one for the list and another for the count. What happens often in my practice is that in many cases I need both the list and the count, while only for few sets I need a separate count method. It all depends of the use case, of course.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Theo</title>
		<link>/2010/08/27/php-what-is-more-powerful-than-list/comment-page-1/#comment-13340</link>
		<dc:creator><![CDATA[Theo]]></dc:creator>
		<pubDate>Fri, 27 Aug 2010 12:26:54 +0000</pubDate>
		<guid isPermaLink="false">/?p=1933#comment-13340</guid>
		<description><![CDATA[This seems like a good use of the list() function! My only questions is how are you gonna fetch just the amount of records (for example when displaying: &quot;There are 465 comments on this blog&quot;) without actually fetching all the results?]]></description>
		<content:encoded><![CDATA[<p>This seems like a good use of the list() function! My only questions is how are you gonna fetch just the amount of records (for example when displaying: &#8220;There are 465 comments on this blog&#8221;) without actually fetching all the results?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
