PHP函数:func_num_args func_num_args() - 返回传递给函数的参数数量。 说明: func_num_args ( void ) : int 参数: 无 返回值: 返回传入当前用户定义函数的参数数量。 参考链接: 手册 Enjoy it !