<?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: Making Uppercase Words Automatically In PHP With UCWords</title>
	<atom:link href="http://www.learnphponline.com/functions/php-ucwords-making-uppercase-words-automatically/feed" rel="self" type="application/rss+xml" />
	<link>http://www.learnphponline.com/functions/php-ucwords-making-uppercase-words-automatically</link>
	<description>Learn PHP Online</description>
	<lastBuildDate>Fri, 03 Sep 2010 17:39:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Jack</title>
		<link>http://www.learnphponline.com/functions/php-ucwords-making-uppercase-words-automatically/comment-page-1#comment-2203</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Tue, 08 Jun 2010 16:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=49#comment-2203</guid>
		<description>OBX - It works like a charm...consider your address variable was $title like below.

$title = &quot;123A TEST ST&quot;;
$title = strtolower($title);
function smartcase($strtitle) {
return preg_replace(
&quot;/(?&lt;=(?&lt;!:&#124;&#039;s)\W)(A&#124;An&#124;And&#124;At&#124;For&#124;In&#124;Is&#124;Of&#124;On&#124;Or&#124;The&#124;To&#124;With)(?=\W)/e&quot;,&#039;strtolower(&quot;$1&quot;)&#039;,$strtitle);
}
$title = @smartcase(ucwords($title));  
echo &quot;&lt;strong&gt;$title&lt;/strong&gt;&quot;;</description>
		<content:encoded><![CDATA[<p>OBX &#8211; It works like a charm&#8230;consider your address variable was $title like below.</p>
<p>$title = &#8220;123A TEST ST&#8221;;<br />
$title = strtolower($title);<br />
function smartcase($strtitle) {<br />
return preg_replace(<br />
&#8220;/(?&lt;=(?&lt;!:|&#039;s)\W)(A|An|And|At|For|In|Is|Of|On|Or|The|To|With)(?=\W)/e&quot;,&#039;strtolower(&quot;$1&quot;)&#039;,$strtitle);<br />
}<br />
$title = @smartcase(ucwords($title));<br />
echo &quot;<strong>$title</strong>&#8220;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OBX</title>
		<link>http://www.learnphponline.com/functions/php-ucwords-making-uppercase-words-automatically/comment-page-1#comment-1637</link>
		<dc:creator>OBX</dc:creator>
		<pubDate>Thu, 18 Feb 2010 15:03:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=49#comment-1637</guid>
		<description>Is there any way to get around the 43things example?  We are trying to use this function to scrub addresses that start like 123A TEST ST.  Is there a way to change it to the 123A Test St?</description>
		<content:encoded><![CDATA[<p>Is there any way to get around the 43things example?  We are trying to use this function to scrub addresses that start like 123A TEST ST.  Is there a way to change it to the 123A Test St?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://www.learnphponline.com/functions/php-ucwords-making-uppercase-words-automatically/comment-page-1#comment-1603</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Fri, 12 Feb 2010 20:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=49#comment-1603</guid>
		<description>What I think jesh meant to say is the last example, as written, would actually return &quot;PHP&quot; as &quot;Php&quot;.</description>
		<content:encoded><![CDATA[<p>What I think jesh meant to say is the last example, as written, would actually return &#8220;PHP&#8221; as &#8220;Php&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pankaj</title>
		<link>http://www.learnphponline.com/functions/php-ucwords-making-uppercase-words-automatically/comment-page-1#comment-1232</link>
		<dc:creator>Pankaj</dc:creator>
		<pubDate>Sun, 13 Dec 2009 08:45:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=49#comment-1232</guid>
		<description>ucwords(); is good function in php, i like this website because i got newthing from here</description>
		<content:encoded><![CDATA[<p>ucwords(); is good function in php, i like this website because i got newthing from here</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: earnest</title>
		<link>http://www.learnphponline.com/functions/php-ucwords-making-uppercase-words-automatically/comment-page-1#comment-981</link>
		<dc:creator>earnest</dc:creator>
		<pubDate>Thu, 05 Nov 2009 23:57:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=49#comment-981</guid>
		<description>How do you do that with a wordpress function like this


i tried is &lt;?php echo ucwords ();?&gt;

but it did not work. How should i do this</description>
		<content:encoded><![CDATA[<p>How do you do that with a wordpress function like this</p>
<p>i tried is &lt;?php echo ucwords ();?&gt;</p>
<p>but it did not work. How should i do this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: www.eerectors.com</title>
		<link>http://www.learnphponline.com/functions/php-ucwords-making-uppercase-words-automatically/comment-page-1#comment-603</link>
		<dc:creator>www.eerectors.com</dc:creator>
		<pubDate>Wed, 24 Jun 2009 06:46:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=49#comment-603</guid>
		<description>good job</description>
		<content:encoded><![CDATA[<p>good job</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zachary Schuessler</title>
		<link>http://www.learnphponline.com/functions/php-ucwords-making-uppercase-words-automatically/comment-page-1#comment-597</link>
		<dc:creator>Zachary Schuessler</dc:creator>
		<pubDate>Fri, 19 Jun 2009 21:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=49#comment-597</guid>
		<description>@jest - That&#039;s incorrect, actually. You need to make use of the strtolower() function first, and then apply the ucwords() function. Take a look at the PHP.net manual for confirmation.</description>
		<content:encoded><![CDATA[<p>@jest &#8211; That&#8217;s incorrect, actually. You need to make use of the strtolower() function first, and then apply the ucwords() function. Take a look at the PHP.net manual for confirmation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jesh</title>
		<link>http://www.learnphponline.com/functions/php-ucwords-making-uppercase-words-automatically/comment-page-1#comment-596</link>
		<dc:creator>jesh</dc:creator>
		<pubDate>Fri, 19 Jun 2009 04:01:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=49#comment-596</guid>
		<description>ucword() should turn &quot;CHECK OUT THIS NEW PHP FUNCTION GUYS!&quot; into &quot;Check Out This New Php Function Guys!&quot;</description>
		<content:encoded><![CDATA[<p>ucword() should turn &#8220;CHECK OUT THIS NEW PHP FUNCTION GUYS!&#8221; into &#8220;Check Out This New Php Function Guys!&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
