You can use PHP array_column function with combination of implode:
implode(', ', array_column($data, 'post_id'));
solved Array key value to string in PHP [duplicate]
You can use PHP array_column function with combination of implode:
implode(', ', array_column($data, 'post_id'));
solved Array key value to string in PHP [duplicate]