title: PHP convert byte string into integer
body: <p>I am trying to convert a 2 byte string into a Short/int data type with unpack but it does not seem to work:</p>
  
  <pre><code>$str = "\x01\xBB";
  unpack("S",$str);
  </code></pre>
  
  <p>it gives <strong>47873</strong> where as it must return <strong>443</strong></p>