I have some plain text and html. I need to create a PHP method that will return the same html, but with before any instances of th
Taken from http://www.php.net/manual/en/function.preg-quote.php
$textbody = "This book is very difficult to find."; $word = "very"; $textbody = preg_replace ("/" . preg_quote($word) . "/", "" . $word . "", $textbody);