📜  对字符串键数组的数组解包支持 - PHP 8.1 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:35.551000             🧑  作者: Mango

代码示例1
$arrayA = ['a' => 1];
$arrayB = ['b' => 2];

$result = ['a' => 0, ...$arrayA, ...$arrayB];

// ['a' => 1, 'b' => 2]