My original string is
one,two,three,four,five,
I need separate each word as a link
<a href="">one</a>, <a href="">two</a>, <a href="">three</a>, ...
My code is
$plat = $row['reg'];
foreach ($plat as $key => $pv) {
$pl[] = implode(',', $pv);
}
for ($p = 1; $p = sizeof($pl); $i++) {
echo '<a href="#" rel="tag">' . $pl[i] . '</a>';
}