note 9068 modified in trim by zak

From: Date: Fri, 13 Oct 2000 18:35:18 +0000
Subject: note 9068 modified in trim by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-6459@lists.php.net to get a copy of this message
To compact any number of spaces inside a string to a single space, use the following code: print $pizza = "Teil1           Teil2         Teil3     Teil4 Teil5 Teil6             df\n"; $pizza = ereg_replace (' +', ' ', $pizza); http://www.php.net/manual/function.trim.php

« previous php.notes (#6459) next »