<?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: Uppercase first word in a string or sentence</title>
	<atom:link href="http://blog.alexmckenzie.info/2009/05/24/uppercase-first-word-in-a-string-or-sentence/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.alexmckenzie.info/2009/05/24/uppercase-first-word-in-a-string-or-sentence/</link>
	<description>Somewhat useful things</description>
	<lastBuildDate>Tue, 08 Jun 2010 03:52:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Mitch</title>
		<link>http://blog.alexmckenzie.info/2009/05/24/uppercase-first-word-in-a-string-or-sentence/comment-page-1/#comment-4978</link>
		<dc:creator>Mitch</dc:creator>
		<pubDate>Fri, 07 May 2010 04:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alexmckenzie.info/?p=28#comment-4978</guid>
		<description>Full proof?  I think you mean foolproof, fool :-)</description>
		<content:encoded><![CDATA[<p>Full proof?  I think you mean foolproof, fool <img src='http://blog.alexmckenzie.info/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex M</title>
		<link>http://blog.alexmckenzie.info/2009/05/24/uppercase-first-word-in-a-string-or-sentence/comment-page-1/#comment-2729</link>
		<dc:creator>Alex M</dc:creator>
		<pubDate>Sun, 18 Oct 2009 12:01:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alexmckenzie.info/?p=28#comment-2729</guid>
		<description>Hi Brett,

The function does use PHP&#039;s ucfirst(), but it does not work by itself.

Using our test string - “HELLO world. This is a test.”, if we just used ucfirst it would return “HELLO world. This is a test.” still, as the first word is all caps.

If we also used ucfirst(strtolower(“HELLO world. This is a test.”)) we would still have a problem. This would return “Hello world. this is a test.”</description>
		<content:encoded><![CDATA[<p>Hi Brett,</p>
<p>The function does use PHP&#8217;s ucfirst(), but it does not work by itself.</p>
<p>Using our test string &#8211; “HELLO world. This is a test.”, if we just used ucfirst it would return “HELLO world. This is a test.” still, as the first word is all caps.</p>
<p>If we also used ucfirst(strtolower(“HELLO world. This is a test.”)) we would still have a problem. This would return “Hello world. this is a test.”</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://blog.alexmckenzie.info/2009/05/24/uppercase-first-word-in-a-string-or-sentence/comment-page-1/#comment-2728</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Sun, 18 Oct 2009 11:26:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alexmckenzie.info/?p=28#comment-2728</guid>
		<description>Could just use php&#039;s inbuilt function..

http://php.net/manual/en/function.ucfirst.php</description>
		<content:encoded><![CDATA[<p>Could just use php&#8217;s inbuilt function..</p>
<p><a href="http://php.net/manual/en/function.ucfirst.php" rel="nofollow">http://php.net/manual/en/function.ucfirst.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad</title>
		<link>http://blog.alexmckenzie.info/2009/05/24/uppercase-first-word-in-a-string-or-sentence/comment-page-1/#comment-1863</link>
		<dc:creator>Chad</dc:creator>
		<pubDate>Wed, 01 Jul 2009 04:32:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alexmckenzie.info/?p=28#comment-1863</guid>
		<description>correct sorry

function uc_first_word ($string)
{
return strtoupper(substr($string,0,1)).strtolower(substr($string,1));
}</description>
		<content:encoded><![CDATA[<p>correct sorry</p>
<p>function uc_first_word ($string)<br />
{<br />
return strtoupper(substr($string,0,1)).strtolower(substr($string,1));<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex M</title>
		<link>http://blog.alexmckenzie.info/2009/05/24/uppercase-first-word-in-a-string-or-sentence/comment-page-1/#comment-1862</link>
		<dc:creator>Alex M</dc:creator>
		<pubDate>Tue, 30 Jun 2009 06:59:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alexmckenzie.info/?p=28#comment-1862</guid>
		<description>Hi Chad,

Your solution would not work in the test case &quot;HELLO world&quot;. Your function would still return &quot;HELLO world&quot;.</description>
		<content:encoded><![CDATA[<p>Hi Chad,</p>
<p>Your solution would not work in the test case &#8220;HELLO world&#8221;. Your function would still return &#8220;HELLO world&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad</title>
		<link>http://blog.alexmckenzie.info/2009/05/24/uppercase-first-word-in-a-string-or-sentence/comment-page-1/#comment-1861</link>
		<dc:creator>Chad</dc:creator>
		<pubDate>Tue, 30 Jun 2009 06:52:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alexmckenzie.info/?p=28#comment-1861</guid>
		<description>function uc_first_word ($string)
{
return strtoupper(substr($string,0,1)).substr($string,1)
}</description>
		<content:encoded><![CDATA[<p>function uc_first_word ($string)<br />
{<br />
return strtoupper(substr($string,0,1)).substr($string,1)<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
