title: PHP read file as an array of bytes
body: <p>I have a file written using <code>JAVA</code> program which has an array of integers written as binary I made an for loop over this array and write it using this method</p>
  
  <pre><code>public static void writeInt(OutputStream out, int v) throws IOException {
      out.write((v &gt;&gt;&gt; 24) &amp; 0xFF);
      out.write((v &gt;&gt;&gt; 16) &amp; 0xFF);
      out.write((v &gt;&gt;&gt; 8) &amp; 0xFF);
      out.write((v &gt;&gt;&gt; 0) &amp; 0xFF);
  }
  </code></pre>
  
  <p>I'm ask about how to read this file in <code>PHP</code>.</p>