title: Passing an Array as Arguments NOT user function, in PHP
body: <p>I have the following code:</p>
  
  <pre><code>$bin = "\x04\x00\xa0\x00\x04\x00\xa0\x00";
  $unpack_data = unpack("C*", $bin);
  $arr = array($unpack_data[1], $unpack_data[2], $unpack_data[3]);
  </code></pre>
  
  <p>How can I pass an array $arr to a <strong><em>pack()</em></strong> function? The only thing that I can make:</p>
  
  <pre><code>$res = pack("C*", $unpack_data[1], $unpack_data[2], $unpack_data[3]);
  </code></pre>
  
  <p>but the length and content of the array are getting in the course of the program.</p>