title: Second parameter in preg_replace_callback()
body: <p>I have a problem with the function <code>preg_replace_callback()</code> in PHP. I want to call a function which requires two parameters.</p>
  
  <pre><code>private function parse_variable_array($a, $b)
  {
      return $a * $b;
  }
  </code></pre>
  
  <p>On the internet I found this piece of code:</p>
  
  <pre><code>preg_replace_callback("/regexcode/", call_user_func_array(array($this, "foo"), array($foo, $bar)), $subject);
  </code></pre>
  
  <p>But in the function foo I cannot use the matches array that is usual with a preg_replace_callback</p>
  
  <p>I hope you can help me!</p>