php中,当实际参数数量大于形参时使用。
func_get_args()可以获取传入的参数并将之转化为数组;
func_get_arg()可以获取某一个传入的参数
function demo(){
print_r(func_get_args());
echo func_get_arg(0);
}
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!