PHPrpc is called remotely, but the number of parameters of each method is inconsistent. I don’t want Hard coding. What’s wrong?

  node.js, question

The following class methods are called remotely, but the number of parameters of each method is not consistent. What’s wrong with not thinking about Hard coding?

class aaaController extends RpcController
 bracket
 public function one_function($a='', $b='', $c=''){}
 public function two_function($d='', $e=''){}
 public function three_function($f=''){}
 bracket

I haven’t contacted RPC, and I don’t know if it meets your problem.

The parameters received in the method can befunc_get_arg()
Version 5.6 adds a new feature that can be used to receive variable number of parameters

function concatenate($transform, ...$strings) {
 $string = '';
 foreach($strings as $piece) {
 $string .= $piece;
 bracket
 return($transform($string));
 bracket