before start while loop
<table>
<tr>
<?php
$n=0;
under while loop
$n++;
?>
<td> <?php echo $value; ?> </td>
<?php
if ($n%4==0){?>
</tr><tr>
<?php
}—–if of
}—–loop of
?>
after loop
</tr></table>
before start while loop
<table>
<tr>
<?php
$n=0;
under while loop
$n++;
?>
<td> <?php echo $value; ?> </td>
<?php
if ($n%4==0){?>
</tr><tr>
<?php
}—–if of
}—–loop of
?>
after loop
</tr></table>
Note : Use this script where you want to fetch the line or items..
$string1 = $variable name;
//$string1 = ucwords($foo);
if(strlen($string1)>28){echo $a=substr($string1,0,28).”<br />”.$b=substr($string1,28,28).”<br />”.$c=substr($string1,56,28);
}
else{echo $string1;}