Einzelnen Beitrag anzeigen

Benutzerbild von 3_of_8
3_of_8

Registriert seit: 22. Mär 2005
Ort: Dingolfing
4.129 Beiträge
 
Turbo Delphi für Win32
 
#23

Re: [PHP] Zeilenumbrüche

  Alt 20. Nov 2005, 10:54
Falsch. Kann ich schon. Im Forum war eine eingebaut, nur mein Chef hat sie falsch eingestellt.

function textwrap($post, $wrapwidth=0, $inpost=0) {
if($wrapwidth==0) $wrapwidth=$this->wrapwidth;
if($post) {
if($inpost==1) return preg_replace("/([^\n\r ?&\.\/<>\"\\-]{".$wrapwidth."})/i"," \\1\n",$post);
else return preg_replace("/([^\n\r -]{".$wrapwidth."})/i"," \\1\n",$post);
}
}

$wrapwidth war vorher auf 75 und ist jetzt auf 60.
Manuel Eberl
„The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.“
- Terry Pratchett
  Mit Zitat antworten Zitat