array_column() function like:
$arr = array_column($array, 'ID');
This question already has an answer here:
I've the following array:
Array (  => Array ( [ID] => 1 [more_user_data] => More )  => Array ( [ID] => 2 [more_user_data] => More ) )
Now I want to have a comma separated list of the IDs to use them in an own array. To get something like this:
How could I only extract the IDs from the second array?