phpbar.de logo

Mailinglisten-Archive

[php] String =?iso-8859-1?Q?=E4ndern?=

[php] String =?iso-8859-1?Q?=E4ndern?=

Daniel Wolpert dw_(at)_siebel.de
Wed, 06 Sep 2000 08:54:31 +0200


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