PHP Tutorial - How To Capitalize Letters With PHP Functions Code Script

Mobile
feeds
Welcome Login | Register

PHP Tutorial - How To Capitalize Letters With PHP Functions Code Script
Reply Your Comments:
Click this button if you are interested in replying to this topic and leave your comments
Sent To Friend
CLick this button if you want to send this page to a friend.
Subsribe To Rss Feeds
Subscribe to RSS
CLick this button if you want to subscribe to this RSS Feed. You can use your browsers feeds burners if you have mozilla or internet explorer 7 or higher and keep up with updates.
  Forums Index
      » PHP Forums
        » » PHP Tutorial - How To Capitalize Letters With PHP Functions Code Script
PHP Tutorial - How To Capitalize Letters With PHP Functions Code Script
Post Description: php tutorial how to capitalize letters with php functions code script PHP
Post Tags:
This Post Has Been Viewed 2944 Times Since Wed Dec 06, 2006 11:39 am Author webmaster with 0 replies
Next Post »» Easy Tutorial - How To Change or Convert Letters To Uppercase Script Codes
PHP Tutorial - How To Capitalize Letters With PHP Functions Code Script
Advertise On This Page




ucwords()


So you wanto learn how make capital letter with php huh? OK, today i will show you how you can achieve this.

First, its important that you have php. If you don't have php, we recommend you buy a php plan from our friends at www.webune.com they have great PHP plans for your domain name.

Ok, that's all you need - PHP hosting. Once you know you have php, you can continue, otherwise, if you don't, this script will not work unless the script is parsed by PHP engine.

1. the first step in this tutorial guide is to copy and past the sample code below to your favorite editor, I will be using notepad.exe in Windows for this simple tutorial. So, copy and past this code:

<?php $word="wallpaperama"; ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Wallpaperama.com Tutorial - How To Capitalize Letters With PHP</title>
<style type="text/css">
<!--
.style1 {
color: #0000FF;
font-weight: bold;
}
.style2 {
color: #009900;
font-weight: bold;
}
-->
</style>
</head>

<body>
<div align="center"><h1>How To Capitalize Letters With PHP </h1></div>
<div align="center">
<p>by <a href="http://www.wallpaperama.com">Wallpaperama.com</a></p>
<p align="left">Step 1. I have defined <strong><em>$word</em></strong> as &quot;<span class="style1">wallpaperama</span>&quot; in lower case with this declaration: &lt;?php
$word=&quot;wallpaperama&quot;;
?&gt; on line 1 of this script </p>
<p align="left">Step 2. This is the value of <strong><em>$word</em></strong> without the <span class="style2">ucwords()</span> PHP function: <span class="style1"><?php echo $word; ?></span></p>
<p align="left">Step 3. Now here <span class="style1"><?php echo $word; ?></span> with the <span class="style2">ucwords()</span> function: <span class="style1"><?php echo ucwords($word); ?></span></p>
<p align="left"><a href="http://www.wallpaperama.com/forums/php-tutorial-how-to-capitalize-letters-with-php-functions-code-script-t573.html">&lt;&lt; Go back to forum</a></p>
<hr>
<p align="center">Free Hosting for this PHP script Provided By <a href="http://www.webune.com">Webune.com</a></p>
</div>
</body>
</html>


2. Now save this file as "capitalize.php", if you are using notepad, make sure to put the quotes ( " ) when Saving As

3. Now upload the capitalize.php file to your hosting space on your website which has PHP. This will show you how the ucwords() functions works so you can now start using it for your projects.

4. if you want to see this script in actions, our friends at www.webune.com have provided us with free PHP space for the purpose of this tutorial.

SEE DEMO HOW TO CAPITALIZE WITH PHP

Hope this helps, if it has, we would appreciate a link back to wallpaperama.com from your website.

Thank You

Wallpaperama Team.



Leave Your Comments

Your Name
Your Email Address (Will Not Be Published)
Notify Me When Someone Replies to this Page
(An email will be sent to you when someone replies to your comments)
Your Comments
Include A Picture with your comments
Share
| More
Share this page by putting this URL in your comments to other websites like myspace, Facebook, Twitter friendster, Hi5, Groups, Boards, Forum or others. Just Copy and Paste this Code
URL:
To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it.
Embed:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
BBCODE:
Subscribe Feeds
Webmasters - Exchange Links With Us. Add related websites to this topic
Add Link:
Links Related to : PHP Tutorial - How To Capitalize Letters With PHP Functions Code Script

Comments and replies About PHP Tutorial - How To Capitalize Letters With PHP Functions Code Script
(0) Comments