此类数组
array (0 => array ('吖' => array (0 => 'a',1 => 'a')),1 => array ('阿' => array (0 => 'a',1 => 'a')))
如何变成
array ('吖' => array (0 => 'a',1 => 'a'),'阿' => array (0 => 'a',1 => 'a'))
------解决方案--------------------
- PHP code
$ar = array (0 => array ('吖' => array (0 => 'a',1 => 'a')),1 => array ('阿' => array (0 => 'a',1 => 'a'))); foreach($ar as $v) $r[key($v)] = current($v); print_r($r);