|
Posted by Geoff Berrow on 12/16/06 01:30
Message-ID: <3e4cb$458343c7$8259c69c$2192@news2.tudelft.nl> from Rik
contained the following:
>$array = split(' ',$string);
>$newstring = '';
>$rows = 3;
>while($rows >= 1){
> $newstring .= implode('
>',array_splice($array,0,floor(count($array)/$rows--))).'<br>';
>}
>echo $newstring;
That's a bit complicated for you Rik...
$array=explode(" ",$linestring);
for($i=0;$i<count($array);$i++){
echo(($i+1)%3===0)?$array[$i]." <br>\n":$array[$i]." ";
}
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Navigation:
[Reply to this message]
|