我有一个数组数组值作为指数
$term = array(
0 => array(
'id'=>'0902001',
'name'=>'bob',
'cgpa'=>'3.81',
),
1 => array(
'id'=>'0902002',
'name'=>'jhon',
'cgpa'=>'3.52',
),
);
我想要一个新的数组,该ID将成为新阵列的CGPA的索引。
$new_arr = array(
'0902001' => '3.81',
'0902002' => '3.52',
);
谢谢!
所以,尽管做到这一点。 –
这个问题似乎是脱离主题,因为堆栈溢出不是http://rentacoder.com/free-coders –
嘿,我也想要一个数组。我的阵列在哪里?为什么我没有阵列? – spencer7593