Wie ersetze ich  mehrer Leerzeiche in einem string durch nur eines?
Ich habe so etwas probiert. Es geht jedoch nicht.
$text = preg_replace("/(\s.)(\s+)/", '$1', $text);
					Ich habe so etwas probiert. Es geht jedoch nicht.
$text = preg_replace("/(\s.)(\s+)/", '$1', $text);
 
          
 Moderator
 Moderator


Kommentar