note 20330 rejected from function.eregi-replace by sander
| From: | sander@php.net | Date: | Sat, 20 Apr 2002 09:26:18 +0000 |
| Subject: | note 20330 rejected from function.eregi-replace by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-29597@lists.php.net to get a copy of this message | ||
You could use
str_replace(" "," ",$string);
to remove all extra spaces.
It will remove all doublespaces but leave at least one..