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. 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" Link to comment https://forums.phpfreaks.com/topic/4485-phpjava/#findComment-15608 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.