SyntaXmasteR
01-04-2006, 11:30 AM
I need to format the output of my text as followed:
*0 characters per line and NO white space. The *0 chars per line is no problem but i cant seem to get rid of the white space. Here is my code:
<?
$numberlength=strlen($number);
$count=0;
for($i=0;$i<$numberlength;$i++)
{
if($count==2*)
{
echo $number[$i] . "<br>";
}
else
{
echo $number[$i];
}
$count++;
}
?>
I tried to use the chr(*-**) in place of the <br> tag but nothing worked. Any ideas?
*0 characters per line and NO white space. The *0 chars per line is no problem but i cant seem to get rid of the white space. Here is my code:
<?
$numberlength=strlen($number);
$count=0;
for($i=0;$i<$numberlength;$i++)
{
if($count==2*)
{
echo $number[$i] . "<br>";
}
else
{
echo $number[$i];
}
$count++;
}
?>
I tried to use the chr(*-**) in place of the <br> tag but nothing worked. Any ideas?