Easy Tutorial - How To Change or Convert Letters To Uppercase Script Codes
RegisterLogin
Easy Tutorial - How To Change or Convert Letters To Uppercase Script Codes
Post Description: Easy Tutorial - How To Change or Convert Letters To Uppercase Script Codes
Tags: Easy, Tutorial, -, How, To, Change, or, Convert, Letters, To, Uppercase, Script, Codes
This Post Was Posted On Feb 29, 2008 By webmaster #1204
Post Description: Easy Tutorial - How To Change or Convert Letters To Uppercase Script Codes
Tags: Easy, Tutorial, -, How, To, Change, or, Convert, Letters, To, Uppercase, Script, Codes
This Post Was Posted On Feb 29, 2008 By webmaster #1204
Easy Tutorial - How To Change or Convert Letters To Uppercase Script Codes by webmaster
Changing letter to uppercase is easy with php.
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 hosting plans for your domain name or website.
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.
In this example, i will change the string wallpaperama to WALLPAPERAMA
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:
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 Change Letters To UPPERCASE With PHP</title>
<style type="text/css">
<!--
.style1 {
color: #0000FF;
font-weight: bold;
}
.style2 {
color: #FF0000;
font-weight: bold;
}
-->
</style>
</head>
<body>
<div align="center"><h1>How To Change Letters To UPPERCASE 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 "<span class="style1">wallpaperama</span>" in lower case with this declaration: <?php
$word="wallpaperama";
?> 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">strtoupper()</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">strtoupper()</span> function: <span class="style1"><?php echo strtoupper($word); ?></span></p>
<p align="left"><a href="http://www.wallpaperama.com/forums/"><< 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>
<!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 Change Letters To UPPERCASE With PHP</title>
<style type="text/css">
<!--
.style1 {
color: #0000FF;
font-weight: bold;
}
.style2 {
color: #FF0000;
font-weight: bold;
}
-->
</style>
</head>
<body>
<div align="center"><h1>How To Change Letters To UPPERCASE 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 "<span class="style1">wallpaperama</span>" in lower case with this declaration: <?php
$word="wallpaperama";
?> 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">strtoupper()</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">strtoupper()</span> function: <span class="style1"><?php echo strtoupper($word); ?></span></p>
<p align="left"><a href="http://www.wallpaperama.com/forums/"><< 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 "wallpaperama-uppercase.php", if you are using notepad, make sure to put the quotes ( " ) when Saving As
[This post sponsered by www.webune.com]
3. Now upload the wallpaperama-uppercase.php file to your hosting space on your website which has PHP. This will show you how the strtoupper() 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.
CLICK HERE TO SEE DEMO
If you have found this simple and short tutorial helpful, we would like to ask you to please link to our website at http://www.wallpaperama.com by linking to Wallpaperama you will help us make tutorials like this one more easier to find by others who are looking for answers like this one.
Thank You
Wallpaperama Team.
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
Raju
#1638 1
how to convert lower case letters to upper case letters in php
Jan 07, 2008 Reply Report abuse
sikkandar
#1637 2
hai this is for testing
Jul 24, 2007 Reply Report abuse
©2012 Webune Forums - Sun Dec 16, 2012 12:13 am
Powered by: Webune Forums V3
Powered by: Webune Forums V3