[Solved]str_replace - Opposite/Reverse of?
Posted: Thu Feb 03, 2011 2:40 am
Hi
I hope you are all well.
Is there a function or a way to use str_replace to keep the words in an array rather than replace them from the target string - Effectively replace all no array content?
ie -
array = "fox", "dog"
string = "the quick brown fox jumps over the lazy dog"
result = "fox dog"
Thanks in advance.
Chris
I hope you are all well.
Is there a function or a way to use str_replace to keep the words in an array rather than replace them from the target string - Effectively replace all no array content?
ie -
array = "fox", "dog"
string = "the quick brown fox jumps over the lazy dog"
result = "fox dog"
Thanks in advance.
Chris