Jürgen: problem mit wordwrap

Beitrag lesen

wenn es jemand wissen will:

  
function specialwordwrap($text, $width)  
{  
 $text = explode(" ", $text);  
 $newtext = array();  
  
 foreach($text as $key => $txt)  
 {  
  if(strlen($txt) > $width)  
  {  
   $txt = wordwrap($txt, $width, " ", 1);  
  }  
  
  $newtext[] = $txt;  
 }  
  
 return implode(" ",$newtext);  
}  

--
Jürgen