0 votes
2.7k 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 8.6k views
0 votes
1 answer 294 views
0 votes
1 answer 485 views
0 votes
1 answer 331 views
0 votes
1 answer 396 views
asked Nov 10, 2019 in General by Juno
0 votes
1 answer 349 views
...