![]() |
[PHP] Replacing exact words Hi guys, below are simple replacing script a word in to another word, or censorship PHP Code: the problem its currently also replacing another words like Quote:
Quote:
please help how to make it only replacing exact words? GBU for all that answering |
Re: [PHP] Replacing exact words PHP Code: |
Re: [PHP] Replacing exact words PHP Code: |
Re: [PHP] Replacing exact words thank you Nathan for replying, already tried like this, but its get error like this PHP Code: |
Re: [PHP] Replacing exact words thank you for replying softwarewarden, its works if the words in the middle of text, its simple way, but not works if the words in the front or back, like this PHP Code: |
Re: [PHP] Replacing exact words The reason it did not work is because of your php version. try this PHP Code: googleg*oglegoogle yahooyah*oyahoo Because your first requirement is not to replace words like "googler" and in your second requirement is replace words like "googler". If you want to replace all the words remove the two '\b's in $exp. |
| All times are GMT -6. The time now is 02:45 AM. |