Array values

Hi, is there a particular php function where i can retrieve a particular set of data from an array into another array like the example below without using “while” or any similar loop?

array(2) {
  [0]=>
  array(3) {
    ["connID"]=>
    string(1) "1"
    ["userID"]=>
    string(1) "2"
    ["status"]=>
    string(1) "0"
  }
  [1]=>
  array(3) {
    ["connID"]=>
    string(1) "2"
    ["userID"]=>
    string(1) "3"
    ["status"]=>
    string(1) "0"
  }
}

Retrieve only "userID" and becomes:

array(2) {2,3}


Thanks for any input.


$newArray = array_map( function ( $a ) { return $a['userID']; }, $oldArray );