数组:
`$arr=['user1','user2','user3','user4'];
函数:
function hDel($hashKey1, ...$otherHashKeys){
}
`
有办法将数组拆分成多个参数直接传入函数吗 还是只能循环
数组:
`$arr=['user1','user2','user3','user4'];
函数:
function hDel($hashKey1, ...$otherHashKeys){
}
`
有办法将数组拆分成多个参数直接传入函数吗 还是只能循环
是这样吗
$arr=['user1','user2','user3','user4'];
function hDel($hashKey1, $hashKey2){
var_dump($hashKey1);
var_dump($hashKey2);
}
call_user_func_array('hDel', $arr);
1 回答4.1k 阅读✓ 已解决
3 回答1.8k 阅读✓ 已解决
2 回答2.2k 阅读✓ 已解决
1 回答1.4k 阅读✓ 已解决
2 回答2.2k 阅读
1 回答585 阅读✓ 已解决
791 阅读
可以这麽用