title: calling php class function in another function of same class using call_user_func_array
body: <p>I have php class which looks something like the following.</p>
  
  <pre><code>class Foo{
  function New_Function($functionName,$ParamsArray){
      $retValue = call_user_func_array($functionName,$ParamsArray);
      return $retValue;
  }
  
  function req_function(param1,param2){
      //Doing something
      }
  
  function otherfunction($param1,$param2){
     $getval = $this-&gt;New_Function('req_function',array($param1,$param2));
     }
  }
  </code></pre>
  
  <p>I want to call <code>req_function</code> from <code>otherfunction</code> which are functions of  same classes using <code>call_user_func_array</code> (because there are many functions like <code>req_functions</code>, hence i decided to use <code>call_user_func_array</code>) , but i am unable to do so, as i haven't used a <code>$this-&gt;</code> pointer which points to the parent class. </p>
  
  <p>How do i make my program work?</p>