faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 2 people (100%) answered Yes
Recently 2 of 2 people (100%) answered Yes

Entry

How would you convert a string to uppercase characters?

Mar 24th, 2008 20:05
ha mo, Vishwambhari Jagdale, Chad Currie, Himanshu Jain,


The strtoupper( )function converts a string to uppercase characters.
$mystring="this is a string";
$newstring=strtoupper($mystring);
echo $newstring;
Results in:
  THIS IS A STRING
u can also try.....
mystring="vishwambhari"
newstring=ucase(mystring) 
response.write newstring
Result:VISHWAMBHARI
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.yamot.com
http://www.mozmar.com
http://www.templatestemp.com