📜  php 将元素添加到关联数组的开头 - PHP 代码示例

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

代码示例1
$arr1 = array('key0' => 'value0') + $arr1;

-------------- OR ------------------

 'value1', 'key2' => 'value2');
$arr = array_merge(array('key0' => 'value0'), $arr);