Create a variable from array of bytes
<p>In PHP I have an array of bytes that I want to turn into a single variable.</p>

<pre><code>$bytes = array(0x12, 0x8D, 0x9D, 0x40, 0x09, 0x64, 0x5A, 0x6E);
</code></pre>

<p>I figured I could create a string like so:</p>

<pre><code>$string = chr(0x12).chr(0x8D)......;
</code></pre>

<p>but that seems hacky.</p>

<p>Any suggestions?</p>
