什么是Python的* Args和** kwargs在PHP中等效? [重复]

This question already has an answer here:

Lord Google isn't giving me anything besides something about declaring optional variables with a value so they can be passed into the code without giving you an error. Is there even an equivalent of *Args or **kwargs in PHP?

Cheers

</div>

For *Args I think you want this func_num_args() please refer to this link for more http://php.net/manual/en/function.func-num-args.php

For **kwargs This feature is not supported in php