如何在关联数组的开头加入项目?例如,假设我有一个这样的数组:
$arr = array('key1' => 'value1', 'key2' => 'value2');
当我在 $arr['key0'] = 'value0';
中添加一些内容时,我得到:
数组 ( [ key1] = > value1 [ key2] = > value2 [ key0] = > value0 )我该怎么做呢
数组 ( [ key0] = > value0 [ key1] = > value1 [ key2] = > value2 )谢谢,
T