PHP Substr_replace function
<?php $find = array ('is','string','example'); $replace = array ('IS','STRING','EXAMPLE'); $string = 'This is a string, and is an example.'; $string_new = str_replace($find,$replace, $string); echo $string_new; ?>