i got a sentance and part of the sentence and i need to remove the smaller part from it
i know str_replace but that would just leave whitespace around it and i dont want to trail the replacer with (." "), any suggestions?
subtract from string
Moderator: General Moderators
- jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
Re: subtract from string
What? You've got a string. You've got another string. You want to remove string 2 from string 1 if it is contained in it.
Trail the replacer? Do you know how to concatenate strings? Or use substr()?
Trail the replacer? Do you know how to concatenate strings? Or use substr()?