时间:2021-07-01 10:21:17 帮助过:1人阅读
$a = Array(
Array( 'id' => 1 ),
Array( 'id' => 2 )
);
$a = array_map('current', $a);
print_r($a);
Array
(
[0] => 1
[1] => 2
)
$a = Array(
Array( 'id' => 1 ),
Array( 'id' => 2 )
);
$ar = array();
foreach($a as $v) $ar[] = $v['id'];
print_r($ar);