call('method',$arg1,$arg2); //Call it using the __call php magic method $output2 = $rpc->method($arg1,$arg2); //$output1 == $output2