Stop PHP STRPOS function from ignoring zeros
<p>I am creating a script that will find files from an input file (right now I am working on a jpg).</p>

<p>I use common file headers/trailers/structure to find the data that needs to be extracted. I use STRPOS to find these commonalities and find the parts of the file that need to be copied from the rest of the data etc etc.</p>

<p>Anyways, I am running into an issue, STRPOS is supposed to be looking for the string, "FFD9"... however it is finding it in incorrect positions!</p>

<p>For example, my hex in my JPG file looks as such,</p>

<p><img src="http://i.stack.imgur.com/SjXZs.png" alt="Wrong String!"></p>

<p>See the FF and the D9 on each side of the zero? STRPOS seems to be ignoring that 00 in-between! I need this to stop for my script to work correctly.</p>

<p>Any idea or suggestions? Thank you very much!</p>
