- str_replace: documentation ( source)
<?php
$bad = array('google.com', 'orange', 'satisfied');
$replace = array('[redacted URL]', 'an unspecified color', 'content');
$text = 'If you search google.com for orange, you will be satisfied with the answer.';
echo str_replace($bad, $replace, $text);