title: Checking if string contains "HTTP://"
body: <p>I am wondering why this code is not working:</p>
  
  <pre><code>// check to see if string contains "HTTP://" in front
  
  if(strpos($URL, "http://")) $URL = $URL;
  else $URL = "http://$URL";
  </code></pre>
  
  <p>If it does find that the string doesn't contain "HTTP://" the final string is "HTTP://HTTP://foo.foo" if it contiains "http://" in front.</p>