class aaaController extends RpcController
{
public function one_function($a='', $b='', $c=''){}
public function two_function($d='', $e=''){}
public function three_function($f=''){}
}
伊谢尔伦2017-04-10 16:42:20
没接触过RPC,不知道是否符合你的问题
方法中接收参数可以用func_get_arg()
5.6版本新添加一个特性,可以用来接收可变个数参数
function concatenate($transform, ...$strings) {
$string = '';
foreach($strings as $piece) {
$string .= $piece;
}
return($transform($string));
}