Implode data from a multi-dimensional array

前端 未结 7 859
梦毁少年i
梦毁少年i 2020-11-22 12:30

I\'m a novice at PHP and I need a quick solution to the following problem but can\'t seem to come up with one:

I have a multi-dimensional array like so



        
7条回答
  •  北海茫月
    2020-11-22 12:38

    join(',', array_map(function (array $tag) { return $tag['tag_name']; }, $array))
    

提交回复
热议问题