title: PHP - Find certain strings in a variable
body: <p>My latest issue involves trying to find "http://" in a variable.  This variable contains the contents of a comments section on a clients website.  I have seen all kinds of answers but none of them seem to work.  I looked at a few other posts on here and I have yet to get the best answer.  Here is what I have so far:</p>
  
  <pre><code>if(strpos($comments, 'http://') == true) {
    // Does stuff here
  }
  </code></pre>
  
  <p>I noticed other people use preg_match and some said to do it in an array.  I am getting confused, too many options.  Just kidding.  I would like some clarification though and any advice would be greatly appreciated.</p>