<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Word Count</title>
	<link>http://phpit.net/code/word-count/</link>
	<description>PHPit has dozens of PHP articles, codesnippets and FAQ's.</description>
	<pubDate>Sun, 03 Aug 2008 19:14:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>by: Jian Wu</title>
		<link>http://phpit.net/code/word-count/#comment-138</link>
		<pubDate>Thu, 17 Nov 2005 15:42:03 +0000</pubDate>
		<guid>http://phpit.net/code/word-count/#comment-138</guid>
					<description>Make sure you also use array_filter function to filter out false elements when your string has double, triple or multiple spaces between words.  So the function should become this:

function wordcount($str) {
    return count(array_filter(explode(' ', $str)));
}</description>
		<content:encoded><![CDATA[<p>Make sure you also use array_filter function to filter out false elements when your string has double, triple or multiple spaces between words.  So the function should become this:</p>
<p>function wordcount($str) {<br />
    return count(array_filter(explode(&#8217; &#8216;, $str)));<br />
}
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
