I'm trying to delete specific words.
$data = str_replace( $wordsToRemove, '!', $data );
But this leaves certain chars off words. So for example if test is a word to remove, testing is now !ing, and tests becomes !s
So I'm trying to get rid of these likes this:
$data = preg_replace("/!anyAmountofCharsRemovedUntilSingleSpace /", ' ', $data);
Is this the right way to do it?