comma separated list in php

后端 未结 3 1669
独厮守ぢ
独厮守ぢ 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:25

    $resultset=array();
    while ($data = db_fetch_array($result)) {
        $resultset[] = $data;
    }
    $comma_separated = implode(",", $resultset);
    

提交回复
热议问题