SyntaxFix
Write A Post
Hire A Developer
Questions
array_map is a call back function, where you can play with the passed array. this should work.
array_map
$str = implode(',', array_map(function($el){ return $el['tag_id']; }, $arr));