title: using call_user_func_array() in codeigniter's _remap method
body: <p><a href="http://ir.php.net/call_user_func_array" rel="nofollow"><code>call_user_func_array()</code>'s PHP manual's examples</a> can only make me more confused with those <code>foo</code> and <code>bar</code> variables!</p>
  
  <p>Anyway, please consider the <code>_remap</code> and <code>ComplexFunction</code> below:</p>
  
  <pre><code>class MyClass extends CI_Controller
  {
  
      public function _remap($method, $params = array())
      {
  
          if (method_exists($this, $method))
          {
              return call_user_func_array(array($this, $method), $params);
          }
  
      }
  
      public function ComplexFunction($param1, $param2, $param3, $param4)
      {
          // process
          return 'done';
      }
  
  }
  </code></pre>
  
  <p>Now will this piece of code work correctly?</p>
  
  <pre><code>$params = array(
                  'param1' =&gt; '1',
                  'param2' =&gt; '2',
                  'param3' =&gt; '3',
                  'param4' =&gt; '4'
                 );
  
  $myObject = new MyClass();
  
  $output = call_user_func_array(array($myObject, 'ComplexFunction'), $params);
  
  echo $output;
  </code></pre>
  
  <ol>
  <li>Will the <code>$output</code> be <code>done</code>?</li>
  <li>Is that a reliable method to use in codeigniter's <code>_remap()</code> function?</li>
  </ol>