title: Pass associative arrays in call_user_func_array(...)
body: <p>I'm building a templating system and I'm running in to an issue with calling functions on the fly.</p>
  
  <p>When I try the following:</p>
  
  <pre><code>$args = array(
      4,
      'test' =&gt; 'hello',
      'hi'
  );
  </code></pre>
  
  <p>You know.. some numerical elements some associative elements, </p>
  
  <pre><code>call_user_func_array($function, $args);
  </code></pre>
  
  <p>converts the array to something like this:</p>
  
  <pre><code>$args = array(
      4,
      'hello',
      'hi'
  );
  </code></pre>
  
  <p>Is there any way around this other than passing an array like this:</p>
  
  <pre><code>$args = array(
      4,
      array('test' =&gt; 'hello'),
      'hi'
  );
  </code></pre>
  
  <p>Thanks!
  Matt</p>