iridiusprime Posted August 9, 2007 Share Posted August 9, 2007 Anyway know of a way to convert uppercase letters to lowercase using PHP? I suppose I could use regex, but I thought maybe there's a simpler way. What I am trying to do is go from ABD to abd. Thanks for your help. Quote Link to comment https://forums.phpfreaks.com/topic/64169-solved-converting-uppercase-letters-to-lowercase/ Share on other sites More sharing options...
Fadion Posted August 9, 2007 Share Posted August 9, 2007 strtolower() - convert all to lower case strotoupper() - convert all to upper case ucfirst() - convert first char to upper case ucwords() - convert all word's first char to upper case Maybe u'll need the other 3 EDIT: Made an error with the functions. Quote Link to comment https://forums.phpfreaks.com/topic/64169-solved-converting-uppercase-letters-to-lowercase/#findComment-319792 Share on other sites More sharing options...
iridiusprime Posted August 9, 2007 Author Share Posted August 9, 2007 Thank you! I didn't even think of that... Quote Link to comment https://forums.phpfreaks.com/topic/64169-solved-converting-uppercase-letters-to-lowercase/#findComment-319798 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.