0 votes
2k views
asked in General by
<?php    

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

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

?>

1 Answer

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

Related questions

+2 votes
2 answers 8.1k views
0 votes
1 answer 233 views
0 votes
1 answer 910 views
0 votes
1 answer 831 views
asked Jul 19, 2018 in General by anonymous
0 votes
2 answers 2.6k views
asked Jul 17, 2018 in General by anonymous
0 votes
1 answer 5.7k views
...