comma separated list in php

后端 未结 3 1671
独厮守ぢ
独厮守ぢ 2021-01-29 15:48

I am trying to build a list separated by commas which should look like this (green, orange, red).

$i=0;
$taxonomy = $form_state[values][taxonomy][5];
foreach ($t         


        
3条回答
  •  天涯浪人
    2021-01-29 16:52

    Someone posted it and I was going to upvote, but they removed it. I think mysql GROUP_CONCAT would be a good solution, since it looks like getting a comma separated list is the only purpose of this query.

提交回复
热议问题