note 9068 deleted from function.trim by felipe

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
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);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.