数组:
`$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);
2 回答2.5k 阅读✓ 已解决
2 回答1.1k 阅读✓ 已解决
1 回答1.6k 阅读✓ 已解决
1 回答845 阅读✓ 已解决
2 回答521 阅读✓ 已解决
938 阅读
2 回答563 阅读
可以这麽用