<?php $replace = array( "/(dog)/i", "/(cat)/i" ); $with = '<strong>$1</strong>'; $str = "I like Dog and cAT"; $str = preg_replace($replace, $with, $str); echo $str;
You have javascript disabled. You will not be able to edit any code.