For the life of me, I can't understand why trim() takes off more than I'm asking for. All I want removed is www. from a string, but in the event of www.w, it takes that off too. This is what I have:
This results in tPHP Code:trim('www.wt', 'www.');
This results in rwtPHP Code:trim('www.rwt', 'www.');
I've since just started using substr to take out the first four, but it will absolutely keep me up at night not knowing why it keeps taking that extra w.



Reply With Quote

Bookmarks