I have about 1000 different sentences. I would like to remove the word "DLC" from these sentences, except for the fragments "All DLC BG" and "DLC Comfort" so from these two fragments the word "DLC" should not be removed.
I think array()
is needed here, but I do not know how to do it.
I tried somethin like this:
if (stripos($title, 'All DLC BG') && stripos($title, 'DLC Comfort') == false) {
$title = str_ireplace("DLC ", " ", $title);
}
but doesnt work.