proctk Posted September 21, 2007 Share Posted September 21, 2007 Hi I have variables stored in a string how I want to make shure the the first letter of the string is large cap. any ideas how to do this Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted September 21, 2007 Share Posted September 21, 2007 read up on string manipulations, you just need to trim the first character off and then put the styling on it. Quote Link to comment Share on other sites More sharing options...
samoht Posted September 21, 2007 Share Posted September 21, 2007 you can use ucfirst http://us3.php.net/ucfirst Quote Link to comment Share on other sites More sharing options...
proctk Posted September 21, 2007 Author Share Posted September 21, 2007 thank you for the help. I this to work but I'm having a hard time getting it to work in another spot. The difference is the for couple char are number and it not working any ideas why <li><?php echo ucfirst($value); ?></li> Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 21, 2007 Share Posted September 21, 2007 There is no such thing as a capital number, so you must mean something else? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.