Array(
[0] => Array ( [user_id] => 1 ) [1] => Array ( [user_id] => 22 )
)我只想要 1和22 怎么变成$a=array('1','22');
php版本要大于5.5.0 $userid_array = array_column($x,'userid'); php版本要大于5.4.0 $userid_array = array_map(function($item){return $item['userid'];},$x); 再低就for循环吧
2.1m questions
2.1m answers
60 comments
57.0k users