I have an array that contains several domain names. I need to replace those domains inside blocks of text (forum posts) with another string, if any of them actually appear inside that forum post.
Whats the best way of doing that? I can't alter the array that contains a list of domains it would search for. Its stored as follows:
$domain_list = array("domain1.com", "domain2.com", "domain3.com");