我有一个对象数组从
Sql group_concat ()
while($row=$result->fetch_object( ))
{ echo $rows->PreviousV ;}
,以逗号分隔的字符串xxxxxx,yyyyyy如何使用php循环它并将其内容显示为链接?
尝试爆炸。它将生成一个数组,然后你可以使用foreach列出它们。
例如:$input = "hello,there";
foreach($input as $index=>$key)
{
echo $key;
}
输出:hello
there