lets say I have a statement $var= " name";
How would I combine ltrim and ucfirst togther to get $var="Name";
help with ltrim and ucfirst
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: help with ltrim and ucfirst
Since the first character is a space, you don't want to uppercase it. As I recall uppercase spaces are very similar to lowercase spaces in appearance. So it looks like you should trim first and then uppercase.
(#10850)