String Capitalization Functions: strtoupper-strtolower-ucwords.

In php you can easily manipulate the capitalization of your PHP strings, there are ready to use functions that help you to convert yout text to upper case, lower case, or just the first letter of every word to upper case.

<?php

$originalString = "Testing string Capitalization AbCDe";

$upperCase = strtoupper($originalString); // Result: TESTING STRING CAPITALIZATION ABCDE
$lowerCase = strtolower($originalString); // Result: testing string capitalization abcde
$ucTitleString = ucwords($originalString); // Result: Testing String Capitalization Abcde

?>


This does explain everything about how to manipulate capitalization. In fact strtoupper returns the string in upper case, strtolower converts to lower case, and ucwords capitalize the first letter of each word, without making any changes to other characters in the word. (ie tEsT becomes TEsT with ucwords).

If you have any question, I'm ready to help you.

34 comments:

Jones said...

hi nice blog. submit your post in w3bookmarks.com

mjcatubay said...

Nyc Blog Go GO

SMS problem...

I found out there a free sending sms
you can make your own.

Try it...
There's a Example Codes

http://ask-php-codes.blogspot.com/

Unknown said...

Our experienced PHP Programmers work on your website from its conceptualization till its completion.

D3 Gold said...


Pleased to uncover your site as well as the fantastic photographs you have frequently! Buy RS Gold
Cheap Diablo 3 Items

china tours said...

What a beautiful dragonfly and what wonderful post!! You can learn more: China tour packages | China travel packages | China Travel Agency

Unknown said...

Top 3 Best Paper Towels in USA

Unknown said...

Best Personal Lubricants

varunsharmaa said...

You have provided a nice article, Thank you very much for this one. And I hope this will be useful for many people.. and I am waiting for your next post keep on updating these kinds of knowledgeable things...

Hadoop Training in HRBR Layout
Hadoop Training in Kalyan Nagar
Best Hadoop Training in Kalyan Nagar Bangalore

Mobile Phone Repairing Services said...

Mobile Phone Repairing Services in Bangalore

vivo service center in Bangalore.
Oneplus service center in Bangalore.
Moto service center in Bangalore.
Honor service center in Bangalore.
Oppo service center in Bangalore.
mi service center in Bangalore
Apple service center in Bangalore

iphoneservicecenterinbangalore said...

iPhone Service center in Bangalore No. 1 Leaders Awesome Services On-time, Every time!
iPhone Service Center in Bangalore
Apple Service center in Bangalore
Apple Service Center in Bangalore

miservicecenterinchennai said...

Mi Service Center in Chennai

Mi Service Center in Chennai No. 1 Leaders Awesome Services On-time, Every time!
Mi Service Center in Chennai
Redmi Service Center in Chennai
Mi Service Center in Chennai

nokiaservicecenter said...
This comment has been removed by the author.
motoservicecenter said...

Moto service center in Chennai
Leading Motorola Service Center In Chennai. Fast & Reliable Services On-time, Every time!
Moto service center in Chennai
Motorola Service Center In Chennai
Motorola Service Center In Chennai

iphone service center said...

Iphone service center in Chennai

Iphone service Center in Chennai offers you best quality of Services On-time, Every time!
IPhone Service Center in Chennai
Apple Iphone Service center in Chennai
Apple Service Center in Chennai
Apple Service center in Chennai
IPhone Service Center in Chennai

lgservicecenter said...

LG Mobile Service Center In Chennai
LG Mobile Service Center In Chennai. Providing Fast, Honest, Reliable & Cost Effective Service Solutions to The LG Mobile Users.
LG Mobile Service Center In Chennai

nokiaservicecenter said...

Nokia Mobile Service Center In Chennai
Nokia Mobile Service Center In Chennai. Providing Fast, Honest, Reliable & Cost Effective Service Solutions to The Nokia Mobile Users.
NOkia Mobile Service Center In Chennai

honourservicecenter said...

Honor service center in Chennai

Honor Service Center in Chennai for the Best & Right Place to service your Honor mobile phone.
Honor Service Center in Chennai

opposervicecenter said...

OPPO Service Center In Chennai
OPPO Service Center Chennai is an end-to-end OPPO service and repair solutions Center.
OPPO Service Center In Chennai

imacservicecenter said...

Apple Imacbook Service Center in Chennai

Apple Laptop Service Center in Chennai offers you best quality of Services On-time, Every time!
Apple Laptop Service Center in Chennai

imacservicecenter said...
This comment has been removed by the author.
acerservicecenter said...

Acer Service Center in Chennai

Acer Service Center in Chennai Best service for all model acer laptop and desktop Services On-time, Every time!
Acer Laptop Service Center in Chennai
Acer Service Center in Chennai
Acer Service Center in Chennai

miservicecenterinchennai said...

Lenovo Service Center in Chennai

Lenovo Service Center Chennai
Lenovo Service Center Chennai
Lenovo service center near me in Chennai
Lenovo service center near me in Chennai

easylearn said...


Wondeful post,very well explained.Thanks for sharing,extremly easy to understand.Python is higly expressive prograaming language.These days all IT industries suggest one to take course on python.
Best Python Training in BTM Layout

easylearn said...


Wondeful post,very well explained.Thanks for sharing,extremly easy to understand.Python is higly expressive prograaming language.These days all IT industries suggest one to take course on python.
Best Python Training in BTM Layout


mi service center said...

Awesome Post!!!


Redmi Service Center in Chennai

Redmi Service Center in Chennai No. 1 Leaders Awesome Services On-time, Every time!
Redmi Service center in chennai
Mi Service Center in Chennai
Mi Service Center in Chennai

sacrlet said said...
This comment has been removed by the author.
sacrlet said said...

WOW Great Post!!!

Nokia Service Center In Chennai

Nokia service center in Chennai offers you a secure and trusted service for all types of mobiles
Nokia Service Center In Chennai

acerservicecenter said...

Apple Service center in chennai

We are the best Iphone service center in Chennai, we provide services with professionally trained Iphone mobile workers

Apple Service center in chennai
Ipad Service center in chennai
Ipad Service center in chennai

OnePlusServiceCenter said...

Oneplus Service Center in Bangalore

Oneplus Repair Service Center in Bangalore. For the finest service and fastest delivery for your Oneplus mobile, visit us! Go home a happy customer! Connect with us!!

Oneplus Mobile Service Center in Bangalore

OppoService said...

Oppo Service Center in Bangalore

OPPO Service Center in Bangalore is the best OPPO Service Center in Bangalore. We can fix all OPPO devices at low cost with best quality.
Oppo Repair Center in Bangalore- All our OPPO care technicians has 10+ years experience in the mobile care fix industry

Oppo repair center in bangalore

Praneeth M said...
This comment has been removed by the author.
Azure DevOps said...

Thank you for sharing this post.
Full Stack Online Training

Parul Pathak said...

I think you did an awesome job explaining allahabad university bsc 1st year Result it. Sure beats having to research allahabad university bsc 3rd year Result it on my own. Thanks

Uniraj BA 1st Year Exam Result 2021 said...

Do you have any tips on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there!
Appreciate it