<?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: A PHP Competition</title>
	<atom:link href="http://codingrecipes.com/a-php-competition/feed" rel="self" type="application/rss+xml" />
	<link>http://codingrecipes.com/a-php-competition</link>
	<description></description>
	<lastBuildDate>Sun, 22 Jan 2012 07:31:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: John</title>
		<link>http://codingrecipes.com/a-php-competition/comment-page-1#comment-3061</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 17 Oct 2011 08:34:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=474#comment-3061</guid>
		<description>Not sure how old this post is but thought I would chip in with my little suggestion:

echo mb_convert_case(&#039;Lorem_ipsum_dolor_sit amet,_consectetur_adipisicing_elit&#039;,MB_CASE_TITLE,&#039;UTF-8&#039;);</description>
		<content:encoded><![CDATA[<p>Not sure how old this post is but thought I would chip in with my little suggestion:</p>
<p>echo mb_convert_case(&#8216;Lorem_ipsum_dolor_sit amet,_consectetur_adipisicing_elit&#8217;,MB_CASE_TITLE,&#8217;UTF-8&#8242;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baz</title>
		<link>http://codingrecipes.com/a-php-competition/comment-page-1#comment-1934</link>
		<dc:creator>Baz</dc:creator>
		<pubDate>Fri, 29 Apr 2011 10:49:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=474#comment-1934</guid>
		<description>$s1 = &#039;Lorem_ipsum_dolor_sit amet,_consectetur_adipisicing_elit&#039;;
  $ss = str_split($s1);foreach($ss as $k=&gt;$v){if($v==&#039;_&#039;){$ss[$k+1]=strtoupper($ss[$k+1]);}}
  echo implode(&#039;&#039;,$ss);</description>
		<content:encoded><![CDATA[<p>$s1 = &#8216;Lorem_ipsum_dolor_sit amet,_consectetur_adipisicing_elit&#8217;;<br />
  $ss = str_split($s1);foreach($ss as $k=&gt;$v){if($v==&#8217;_'){$ss[$k+1]=strtoupper($ss[$k+1]);}}<br />
  echo implode(&#8221;,$ss);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GK</title>
		<link>http://codingrecipes.com/a-php-competition/comment-page-1#comment-1927</link>
		<dc:creator>GK</dc:creator>
		<pubDate>Tue, 26 Apr 2011 14:09:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=474#comment-1927</guid>
		<description>echo preg_replace(&#039;/_([a-z])/e&#039;, &#039;strtoupper(&quot;_$1&quot;)&#039;, &#039;Lorem_ipsum_dolor_sit amet,_consectetur_adipisicing_elit&#039;) . &quot;\n&quot;;</description>
		<content:encoded><![CDATA[<p>echo preg_replace(&#8216;/_([a-z])/e&#8217;, &#8216;strtoupper(&#8220;_$1&#8243;)&#8217;, &#8216;Lorem_ipsum_dolor_sit amet,_consectetur_adipisicing_elit&#8217;) . &#8220;\n&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://codingrecipes.com/a-php-competition/comment-page-1#comment-1280</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sun, 22 Aug 2010 10:21:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=474#comment-1280</guid>
		<description>How about this:

$string = &#039;Lorem_ipsum_dolor_sit amet,_consectetur_adipisicing_elit&#039;;
$words = explode(&#039;_&#039;,$string);
foreach($words as $word) {
	$wordarray[] = ucfirst($word).&#039;_&#039;;
}
$string = rtrim(implode($wordarray),&#039;_&#039;);
echo $string;</description>
		<content:encoded><![CDATA[<p>How about this:</p>
<p>$string = &#8216;Lorem_ipsum_dolor_sit amet,_consectetur_adipisicing_elit&#8217;;<br />
$words = explode(&#8216;_&#8217;,$string);<br />
foreach($words as $word) {<br />
	$wordarray[] = ucfirst($word).&#8217;_';<br />
}<br />
$string = rtrim(implode($wordarray),&#8217;_');<br />
echo $string;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Codehead</title>
		<link>http://codingrecipes.com/a-php-competition/comment-page-1#comment-192</link>
		<dc:creator>Codehead</dc:creator>
		<pubDate>Wed, 29 Oct 2008 20:56:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=474#comment-192</guid>
		<description>That&#039;s fine Chris, good solutions, hoping to see more :)</description>
		<content:encoded><![CDATA[<p>That&#8217;s fine Chris, good solutions, hoping to see more <img src='http://codingrecipes.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://codingrecipes.com/a-php-competition/comment-page-1#comment-191</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Wed, 29 Oct 2008 20:32:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=474#comment-191</guid>
		<description>^ oops, i didn&#039;t realize Boban posted the same solution :)</description>
		<content:encoded><![CDATA[<p>^ oops, i didn&#8217;t realize Boban posted the same solution <img src='http://codingrecipes.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://codingrecipes.com/a-php-competition/comment-page-1#comment-190</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Wed, 29 Oct 2008 20:26:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=474#comment-190</guid>
		<description>echo(str_replace(Array(&quot; &quot;,&quot;&#124;&quot;),Array(&quot;_&quot;,&quot; &quot;),ucwords(str_replace(Array(&quot; &quot;,&quot;_&quot;),Array(&quot;&#124;&quot;,&quot; &quot;),&quot;Lorem_ipsum_dolor_sit amet,_consectetur_adipisicing_elit&quot;))));</description>
		<content:encoded><![CDATA[<p>echo(str_replace(Array(&#8221; &#8220;,&#8221;|&#8221;),Array(&#8220;_&#8221;,&#8221; &#8220;),ucwords(str_replace(Array(&#8221; &#8220;,&#8221;_&#8221;),Array(&#8220;|&#8221;,&#8221; &#8220;),&#8221;Lorem_ipsum_dolor_sit amet,_consectetur_adipisicing_elit&#8221;))));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boban Karišik</title>
		<link>http://codingrecipes.com/a-php-competition/comment-page-1#comment-189</link>
		<dc:creator>Boban Karišik</dc:creator>
		<pubDate>Wed, 29 Oct 2008 20:01:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=474#comment-189</guid>
		<description>I came up with a better solution:

echo preg_replace(&#039;/_(\w)/e&#039;,&quot;_.strtoupper(\\1)&quot;,&#039;Lorem_ipsum_dolor_sit amet,_consectetur_adipisicing_elit&#039;);</description>
		<content:encoded><![CDATA[<p>I came up with a better solution:</p>
<p>echo preg_replace(&#8216;/_(\w)/e&#8217;,&#8221;_.strtoupper(\\1)&#8221;,&#8217;Lorem_ipsum_dolor_sit amet,_consectetur_adipisicing_elit&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boban</title>
		<link>http://codingrecipes.com/a-php-competition/comment-page-1#comment-188</link>
		<dc:creator>Boban</dc:creator>
		<pubDate>Wed, 29 Oct 2008 10:46:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=474#comment-188</guid>
		<description>I`m sorry, it is completely my fault, i didn&#039;t  see that. Here is a solution:

$arr1 = array(&#039; 2&#039;,&#039; 1 &#039;);
$arr2 = array(&#039; &#039;,&#039;_&#039;);
echo str_replace($arr1,$arr2,ucwords(str_replace($arr2,$arr1,&#039;Lorem_ipsum_dolor_sit amet,_consectetur_adipisicing_elit&#039;)));</description>
		<content:encoded><![CDATA[<p>I`m sorry, it is completely my fault, i didn&#8217;t  see that. Here is a solution:</p>
<p>$arr1 = array(&#8216; 2&#8242;,&#8217; 1 &#8216;);<br />
$arr2 = array(&#8216; &#8216;,&#8217;_');<br />
echo str_replace($arr1,$arr2,ucwords(str_replace($arr2,$arr1,&#8217;Lorem_ipsum_dolor_sit amet,_consectetur_adipisicing_elit&#8217;)));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Codehead</title>
		<link>http://codingrecipes.com/a-php-competition/comment-page-1#comment-187</link>
		<dc:creator>Codehead</dc:creator>
		<pubDate>Wed, 29 Oct 2008 10:13:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=474#comment-187</guid>
		<description>Boban, if you look closer, it has a space in the middle of it:
Lorem_ipsum_dolor_sit amet,_consectetur_adipisicing_elit

amet, shouldn&#039;t be capitalized:
Lorem_Ipsum_Dolor_Sit amet,_Consectetur_Adipisicing_Elit

Yours will capitalize amet...</description>
		<content:encoded><![CDATA[<p>Boban, if you look closer, it has a space in the middle of it:<br />
Lorem_ipsum_dolor_sit amet,_consectetur_adipisicing_elit</p>
<p>amet, shouldn&#8217;t be capitalized:<br />
Lorem_Ipsum_Dolor_Sit amet,_Consectetur_Adipisicing_Elit</p>
<p>Yours will capitalize amet&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

