给PHP关联数组的头部增加一项
$user=array( 'id'=>'5', 'name'=>'user', 'email'=>'[email protected]', 'status'=>'1'); $user1['xxx'] = 'xxxx'; $aa = array_merge($user1,$user); // $user=array( 'id'=>'5', 'name'=>'user', 'email'=>'[email protected]', 'status'=>'1'); $user = array_reverse($user); $user['xxx'] = 'xxx'; $user = array_reverse($user);