0 votes
4.5k views
in General by
<?php    

$find ="/$this_exp/";  $replace_this ="<b>$word</b>";    

echo preg_replace ($find, $replace_this, $output);

?>

1 Answer

0 votes
by
$find ="/$this_exp/i"; //note the i for insensitive

Related questions

+2 votes
2 answers 10.8k views
0 votes
1 answer 867 views
0 votes
1 answer 3.5k views
0 votes
2 answers 2.1k views
0 votes
1 answer 1.0k views
0 votes
1 answer 1.7k views
...