Mailinglisten-Archive |
Rene Paschold wrote: > Wie waer's damit ? : define(_LINE_LENGTH_,10); $bemerkung="tons of text with nothing but randomly concateneated displayable tokens"; $message; $idx=0; $line=0; echo $bemerkung; $len=strlen($bemerkung); echo "len : $len<br>"; while ( $len > _LINE_LENGTH_ ) { $message[$line++]=substr($bemerkung, $idx, _LINE_LENGTH_ ).'\n'; $idx+=_LINE_LENGTH_; $len-=_LINE_LENGTH_; } $message[$line]=substr($bemerkung, $idx, _LINE_LENGTH_ ).'\n'; for($i=0;$i<=$line;$i++) { echo "line : $i : $message[$i]<br>"; } ______________________________-- Gruß, daniel
php::bar PHP Wiki - Listenarchive