给PHP关联数组的头部增加一项作者:luke

$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);
时间:2018-3-29 分类:练习