Have to say with trying to work with data that is from users, working with lc(), uc(), and ucfirst() makes things easy. I was working with some user input that some times people with upper case things and some times they will not. I know that I could match regardless of case, but I really like just doing that extra check, and step of making sure that I convert every thing to lower case and work on the data then if needed to just use the ucfirst where needed. I am not working on any thing with proper nouns or names so no worry about making sure of this.
No comments:
Post a Comment