dragonusthei Posted September 14, 2007 Share Posted September 14, 2007 Hi, How could i make the following Term 1 "UNITED STATES" read "United States". Term 2 "SPAIN" read "Spain". Could any one help? I know it needs to like say all to lowercase then 1st to uppercase and then how do i get the second part of united states? Quote Link to comment https://forums.phpfreaks.com/topic/69381-how-to-make-uppercase/ Share on other sites More sharing options...
darkfreaks Posted September 14, 2007 Share Posted September 14, 2007 Nvm ucwords is better! Quote Link to comment https://forums.phpfreaks.com/topic/69381-how-to-make-uppercase/#findComment-348599 Share on other sites More sharing options...
wildteen88 Posted September 14, 2007 Share Posted September 14, 2007 use ucwords $word = 'UNITED STATES'; echo ucwords($word); // United States Quote Link to comment https://forums.phpfreaks.com/topic/69381-how-to-make-uppercase/#findComment-348601 Share on other sites More sharing options...
MadTechie Posted September 14, 2007 Share Posted September 14, 2007 $str = "Hello wOrld!"; $str = ucwords(strtolower($str)); // Hello World! Quote Link to comment https://forums.phpfreaks.com/topic/69381-how-to-make-uppercase/#findComment-348603 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.