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? 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 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. 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() Link to comment https://forums.phpfreaks.com/topic/127940-solved-strtoupper/#findComment-662511 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.