here it is in td's and tr's, i will leave it up to you to do other types of formatting, for example you could put three results, then a new row, three more, new row, etc....
think about what you are doing logically and then work it out on paper, if need be to work out how you would do it, with counters, whatever
<?
$split_features = "123654654123456456";
$i = 0;
?>
<table cellspacing="0" cellpadding="0">
<?
for ($i = 0; $i <= 85; $i += 3)
{
?>
<tr>
<td>
<?
if ((substr($split_features,$i ,3)) == "123")
{
echo "text";
}
else
{
echo substr($split_features,$i ,3);
}
?>
</td>
</tr>
<?
}
?>
</table>