我有一个示例代码:
$array1 = ("key1", "key3");
$array2 = ("value1", "value3");
$array = array_combine($array1, $array2);
if(!isset($array["key2"])) {
$array["key2"] = "value2";
}
但结果是错误,如何修复它
array("key1"=>"value1", "key2"=>"value2", "key3"=>"value3");