note 9068 deleted from function.trim by felipe

From: Date: Sat, 29 Dec 2007 18:50:14 +0000
Subject: note 9068 deleted from function.trim by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134172@lists.php.net to get a copy of this message
Note Submitter: ---- 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);

« previous php.notes (#134172) next »