mcmuney Posted March 8, 2006 Share Posted March 8, 2006 Sorry if this is all java, need a quick solution. What's the code to capitalize? For example, if someone enters, "uNited", it should change to "United":this.value.toCapLowerCase();Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/4485-phpjava/ Share on other sites More sharing options...
lessthanthree Posted March 8, 2006 Share Posted March 8, 2006 If I understand correctly, you are looking for the php equivalent?$rtn = ucfirst(strtolower("uNited")); // would return "United"of course it can be done with vars$text = "uNited";$rtn = ucfirst(strtolower($text)); //would also return "United" Quote Link to comment https://forums.phpfreaks.com/topic/4485-phpjava/#findComment-15608 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.