返回输入数组的中某个单一列的值
语法:array_column(array, column_key, index_key);
用法一:
array_column($userlist, 'user_id');
return array('1001', '1002');
用法二:
array_column($userlist, null, 'user_id');
return array('1001' => array(...), '1002' => array(....));
返回输入数组的中某个单一列的值
语法:array_column(array, column_key, index_key);
用法一:
array_column($userlist, 'user_id');
return array('1001', '1002');
用法二:
array_column($userlist, null, 'user_id');
return array('1001' => array(...), '1002' => array(....));