note 9068 deleted from function.trim by felipe
| 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);