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