Ninjakreborn Posted March 1, 2007 Share Posted March 1, 2007 Is there a way to take a word (1 word only) and have the first letter of that word appear as uppercase. strtolower and strtoupper isn't going to help me. I need just the first letter of the word. I am hoping for something quick without regular expressions, but I don't know of any functions that do that. Any advice? Link to comment https://forums.phpfreaks.com/topic/40731-solved-upper-case-first-letter-1-word/ Share on other sites More sharing options...
kenrbnsn Posted March 1, 2007 Share Posted March 1, 2007 You really should learn how to use the online PHP manual. The function you want is ucwords(). Ken Link to comment https://forums.phpfreaks.com/topic/40731-solved-upper-case-first-letter-1-word/#findComment-197205 Share on other sites More sharing options...
Ninjakreborn Posted March 1, 2007 Author Share Posted March 1, 2007 Thanks, perfect, this will work. Link to comment https://forums.phpfreaks.com/topic/40731-solved-upper-case-first-letter-1-word/#findComment-197209 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.