twilitegxa Posted July 22, 2009 Share Posted July 22, 2009 Is there a way to convert the case of output from the database to just uppercase on the first letter of the output? I don't need every other word, just the first word. Examples: I want to go to the store... To become a doctor one day... To marry one day... All other characters need to be lowercase. Just the first letter to be uppercase. Can this be set? Quote Link to comment Share on other sites More sharing options...
Q Posted July 22, 2009 Share Posted July 22, 2009 php.net's got the answer Quote Link to comment Share on other sites More sharing options...
Psycho Posted July 22, 2009 Share Posted July 22, 2009 Make sure you look at the examples on the page that Q linked to. You need to use a combination of ucfirst() AND strtolower() to get what you want - unless the values from teh DB are always in lower case to begin with. But, just look at the examples and there is one exactly for what you need. Quote Link to comment Share on other sites More sharing options...
twilitegxa Posted July 22, 2009 Author Share Posted July 22, 2009 Thanks to both of you! That's exactly what I needed! Quote Link to comment 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.