note 9068 modified in trim by zak

From: Date: Fri, 13 Oct 2000 18:32:38 +0000
Subject: note 9068 modified in trim by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-6457@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: $pizza = "Teil1 Teil2 Teil3 Teil4 Teil5 Teil6 df"; $pizza = ereg_replace (' +', ' ', $pizza); http://www.php.net/manual/function.trim.php

« previous php.notes (#6457) next »