View Full Version : modifying php text string
sweenster
11-01-2002, 02:26 PM
If I have a string, say:
$value = "sweenster";
how could I convert it so that the first letter will be in upper case:
$value2 = "Sweenster";
???
mordred
11-01-2002, 02:34 PM
http://us.php.net/manual/en/function.ucfirst.php
There's a magnificent manual as a CHM-File (you know, with index, search functionality, etc.). Grab it now! ;)
laughbiz
11-03-2002, 01:07 AM
Try this:
$value = "sweenster";
$value2 = ucfirst($value);
http://www.laughland.biz
"the web site for web sites"
(don't forget to cast your diamond web award vote while on site!)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.