$roomservicesids = array_map(function($v){ return $v['serviceID'];}, $roomsservices);
This is a compact way of getting the serviceID
of each array element. You can do it with an explicit loop like so:
$roomservicesids = array();
foreach ($roomsservices as $service) {
$roomservicesids[] = $service['serviceID'];
}