<?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: A function to return the first n words from a string</title>
	<atom:link href="http://www.nutt.net/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nutt.net/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/</link>
	<description>Random articles on whatever I feel like...</description>
	<lastBuildDate>Tue, 07 Feb 2012 22:30:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: surendra</title>
		<link>http://www.nutt.net/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/comment-page-1/#comment-165277</link>
		<dc:creator>surendra</dc:creator>
		<pubDate>Wed, 19 Oct 2011 09:02:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nutt.net/archive/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/56.html#comment-165277</guid>
		<description>thnx</description>
		<content:encoded><![CDATA[<p>thnx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: surendra</title>
		<link>http://www.nutt.net/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/comment-page-1/#comment-165275</link>
		<dc:creator>surendra</dc:creator>
		<pubDate>Wed, 19 Oct 2011 09:01:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nutt.net/archive/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/56.html#comment-165275</guid>
		<description>Very usefull</description>
		<content:encoded><![CDATA[<p>Very usefull</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kaylaximuoi</title>
		<link>http://www.nutt.net/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/comment-page-1/#comment-120042</link>
		<dc:creator>kaylaximuoi</dc:creator>
		<pubDate>Tue, 23 Nov 2010 23:55:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nutt.net/archive/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/56.html#comment-120042</guid>
		<description>That&#039;s exactly what I need. Thanks Ryan! ^_^</description>
		<content:encoded><![CDATA[<p>That&#8217;s exactly what I need. Thanks Ryan! ^_^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shailendra</title>
		<link>http://www.nutt.net/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/comment-page-1/#comment-116943</link>
		<dc:creator>Shailendra</dc:creator>
		<pubDate>Mon, 25 Oct 2010 05:09:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nutt.net/archive/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/56.html#comment-116943</guid>
		<description>Nice Function..</description>
		<content:encoded><![CDATA[<p>Nice Function..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amr</title>
		<link>http://www.nutt.net/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/comment-page-1/#comment-111150</link>
		<dc:creator>Amr</dc:creator>
		<pubDate>Thu, 02 Sep 2010 01:03:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nutt.net/archive/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/56.html#comment-111150</guid>
		<description>Great work.
I was looking for such function.
Thank you very much</description>
		<content:encoded><![CDATA[<p>Great work.<br />
I was looking for such function.<br />
Thank you very much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edvan</title>
		<link>http://www.nutt.net/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/comment-page-1/#comment-87117</link>
		<dc:creator>Edvan</dc:creator>
		<pubDate>Fri, 04 Sep 2009 18:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nutt.net/archive/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/56.html#comment-87117</guid>
		<description>Here go another way:

function first_word()
{
   preg_match(&#039;/[^ ]*/&#039;, $username, $matches);
   return $matches[0];
}</description>
		<content:encoded><![CDATA[<p>Here go another way:</p>
<p>function first_word()<br />
{<br />
   preg_match(&#8216;/[^ ]*/&#8217;, $username, $matches);<br />
   return $matches[0];<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prem ypi</title>
		<link>http://www.nutt.net/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/comment-page-1/#comment-83883</link>
		<dc:creator>prem ypi</dc:creator>
		<pubDate>Mon, 29 Jun 2009 18:35:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nutt.net/archive/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/56.html#comment-83883</guid>
		<description>This is really helpful. I had to pick up first name of the user and it worked like charm</description>
		<content:encoded><![CDATA[<p>This is really helpful. I had to pick up first name of the user and it worked like charm</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.nutt.net/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/comment-page-1/#comment-71543</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Fri, 13 Mar 2009 10:55:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nutt.net/archive/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/56.html#comment-71543</guid>
		<description>Thanks.  You&#039;re right, it should be if string contains fewer words then...</description>
		<content:encoded><![CDATA[<p>Thanks.  You&#8217;re right, it should be if string contains fewer words then&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Something</title>
		<link>http://www.nutt.net/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/comment-page-1/#comment-71467</link>
		<dc:creator>Tom Something</dc:creator>
		<pubDate>Thu, 12 Mar 2009 23:58:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nutt.net/archive/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/56.html#comment-71467</guid>
		<description>...aaaaand a typo in my own comment. Go me!</description>
		<content:encoded><![CDATA[<p>&#8230;aaaaand a typo in my own comment. Go me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Something</title>
		<link>http://www.nutt.net/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/comment-page-1/#comment-71466</link>
		<dc:creator>Tom Something</dc:creator>
		<pubDate>Thu, 12 Mar 2009 23:57:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nutt.net/archive/2004/12/29/php-a-function-to-return-the-first-n-words-from-a-string/56.html#comment-71466</guid>
		<description>Thanks. Short and simple is the way to go, and now I have a practical example of array_splice to do other stuff with.

Noticed a small typo in your inline comment:

&quot;If string contains more words than $wordsreturned, the entire string is returned.&quot;

should probably read &quot;Unless string contains...&quot;

of &quot;If string contains &lt;= $wordsreturned...&quot;</description>
		<content:encoded><![CDATA[<p>Thanks. Short and simple is the way to go, and now I have a practical example of array_splice to do other stuff with.</p>
<p>Noticed a small typo in your inline comment:</p>
<p>&#8220;If string contains more words than $wordsreturned, the entire string is returned.&#8221;</p>
<p>should probably read &#8220;Unless string contains&#8230;&#8221;</p>
<p>of &#8220;If string contains &lt;= $wordsreturned&#8230;&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

