I need to replace two words with one word in string. For example my string looks like:
$mySentence = "abcd efg ijkl";
$replaceWith = "XYZ";
$newString = str_replace("efg ijkl", $replaceWith, $mySentence);
But there is no any changes.
The output should be abcd XYZ.