如何在键值对数组的后面追加多一对键值对
比如
$arr1= array (
"a" => '1',
"b" => '2',
"c" => '3',
"d" => '4');
将他变成
$arr2=array (
"a" => '1',
"b" => '2',
"c" => '3',
"d" => '4',
"f" => '5',);
要怎么样做。才能在键值对数组里面添加新的键值对.
回复讨论(解决方案)
直接赋值不可以么!!!这么easy
直接 $array['f'] = $数组;