title: php 5 strpos() difference between returning 0 and false?
body: <pre><code>if(strpos("http://www.example.com","http://www.")==0){ // do work}
  </code></pre>
  
  <p>I'd expect this to resolve as true, which it does.  But what happens when I do</p>
  
  <pre><code>if(strpos("abcdefghijklmnop","http://www.")==0){// do work}
  </code></pre>
  
  <p>This also passes on php 5 because as far as I can work out the strpos returns false which translates as 0.</p>
  
  <p>Is this correct thinking/behaviour?  If so what is the workaround for testing for that a substring is at the beginning of another string?</p>