<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHP Magic Book - Free PHP Scripts, Tutorials and Downloads &#187; php case</title>
	<atom:link href="http://www.phpmagicbook.com/tag/php-case/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpmagicbook.com</link>
	<description>PHP AtoZ Reloaded, free php tutorials, free php downloads, php scripts, PHP tips</description>
	<lastBuildDate>Tue, 15 Jun 2010 13:22:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>PHP &#8211; String Case &#8211; Capitalization</title>
		<link>http://www.phpmagicbook.com/php-string-case-capitalization/</link>
		<comments>http://www.phpmagicbook.com/php-string-case-capitalization/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 23:33:18 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[Capitalization]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[String Case]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[basics]]></category>
		<category><![CDATA[case]]></category>
		<category><![CDATA[php case]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=179</guid>
		<description><![CDATA[String to Upper Case &#8211; strtoupper The strtoupper function takes one argument, the string you want converted to upper case and returns the converted string. Only letters of the alphabet are changed, numbers will remain the same. &#60;?php $originalString = &#34;String Capitalization 5654&#34;; $upperCase = strtoupper&#40;$originalString&#41;; echo &#34;Old string - $originalString &#60;br /&#62;&#34;; echo &#34;New [...]<p><a href="http://www.phpmagicbook.com/php-string-case-capitalization/">PHP &#8211; String Case &#8211; Capitalization</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
]]></description>
			<content:encoded><![CDATA[<h4>String to Upper Case &#8211; strtoupper</h4>
<p>The strtoupper function takes one argument, the string you want converted to upper case and returns the converted string. Only letters of the alphabet are changed, numbers will remain the same.</p>
<p><span id="more-246"></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$originalString</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;String Capitalization 5654&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$upperCase</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strtoupper</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$originalString</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Old string - <span style="color: #006699; font-weight: bold;">$originalString</span> &lt;br /&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;New String - <span style="color: #006699; font-weight: bold;">$upperCase</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Output:</span>
<span style="color: #666666; font-style: italic;">// New String - STRING CAPITALIZATION 5654</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h4>String to lower Case &#8211; strtolower</h4>
<p>The strtolower function also has one argument: the string that will be converted to lower case.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$originalString</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;String Capitalization 1234&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$lowerCase</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$originalString</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Old string - <span style="color: #006699; font-weight: bold;">$originalString</span> &lt;br /&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;New String - <span style="color: #006699; font-weight: bold;">$lowerCase</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Output:</span>
<span style="color: #666666; font-style: italic;">// New String - string capitalization 1234</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h4>Capitalizing the First Letter &#8211; ucwords</h4>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$titleString</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;a title that could use some hELP&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$ucTitleString</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ucwords</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$titleString</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Old title - <span style="color: #006699; font-weight: bold;">$titleString</span> &lt;br /&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;New title - <span style="color: #006699; font-weight: bold;">$ucTitleString</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Output:</span>
<span style="color: #666666; font-style: italic;">// New Title - New title - A Title That Could Use Some HELP</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><a href="http://www.phpmagicbook.com/php-string-case-capitalization/">PHP &#8211; String Case &#8211; Capitalization</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.phpmagicbook.com/find-page-url-php/" title="Find Page URL With PHP &#8211; File Path">Find Page URL With PHP &#8211; File Path</a></li><li><a href="http://www.phpmagicbook.com/php-post-and-get/" title="PHP Post And Get">PHP Post And Get</a></li><li><a href="http://www.phpmagicbook.com/php-arrays/" title="PHP Arrays">PHP Arrays</a></li><li><a href="http://www.phpmagicbook.com/php-strings/" title="PHP Strings">PHP Strings</a></li><li><a href="http://www.phpmagicbook.com/local-and-glob-scope/" title="Local And Global Variable Scope in PHP">Local And Global Variable Scope in PHP</a></li><li><a href="http://www.phpmagicbook.com/php-logical-operators/" title="PHP Logical Operators">PHP Logical Operators</a></li><li><a href="http://www.phpmagicbook.com/php-functions/" title="PHP Functions">PHP Functions</a></li><li><a href="http://www.phpmagicbook.com/php-for-each-loop/" title="PHP ForEach Loop">PHP ForEach Loop</a></li><li><a href="http://www.phpmagicbook.com/php-do-while-loop/" title="PHP Do While Loop">PHP Do While Loop</a></li><li><a href="http://www.phpmagicbook.com/php-while-loop/" title="PHP While Loop">PHP While Loop</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.phpmagicbook.com/php-string-case-capitalization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
