Preg_match no matter what
<p>I have been trying to match my one variable with the other. All I want that variable let's say <code>$word</code> contains no matter what in it matches with the the other variable lets say <code>$search_in</code> and echo results accordingly.</p>

<p>I have been using <code>if (preg_match("/$word/i", $search_in)) echo "matches";</code> but I am getting a lot of warnings like the following as I applied regexp on the values being returned from DB.</p>

<blockquote>
  <p>Warning: preg_match() [function.preg-match]: Unknown modifier '(' </p>
  
  <p>Warning: preg_match() [function.preg-match]: Unknown modifier 'T'</p>
</blockquote>
