84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
class aaaController extends RpcController { public function one_function($a='', $b='', $c=''){} public function two_function($d='', $e=''){} public function three_function($f=''){} }
认证高级PHP讲师
没接触过RPC,不知道是否符合你的问题
方法中接收参数可以用func_get_arg()5.6版本新添加一个特性,可以用来接收可变个数参数
function concatenate($transform, ...$strings) { $string = ''; foreach($strings as $piece) { $string .= $piece; } return($transform($string)); }
没接触过RPC,不知道是否符合你的问题
方法中接收参数可以用func_get_arg()
5.6版本新添加一个特性,可以用来接收可变个数参数