ngreenwood6 Posted October 11, 2008 Share Posted October 11, 2008 I am trying to capitalize the first letter of a word. The word comes from the database and is put into a variable. Is there anyway to just capitalize the first letter? Quote Link to comment https://forums.phpfreaks.com/topic/127940-solved-strtoupper/ Share on other sites More sharing options...
kenrbnsn Posted October 11, 2008 Share Posted October 11, 2008 Look at ucwords() Ken Quote Link to comment https://forums.phpfreaks.com/topic/127940-solved-strtoupper/#findComment-662506 Share on other sites More sharing options...
ngreenwood6 Posted October 11, 2008 Author Share Posted October 11, 2008 Thanks, worked perfectly for me. thanks again for the help. Quote Link to comment https://forums.phpfreaks.com/topic/127940-solved-strtoupper/#findComment-662509 Share on other sites More sharing options...
Zane Posted October 11, 2008 Share Posted October 11, 2008 The above function will capitalize every word in a sentence or string This one will only do one ucfirst() Quote Link to comment https://forums.phpfreaks.com/topic/127940-solved-strtoupper/#findComment-662511 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.