note 19805 added to function.eregi-replace
| From: | bclaydon at perseus dot com | Date: | Mon, 11 Mar 2002 21:11:31 +0000 |
| Subject: | note 19805 added to function.eregi-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27633@lists.php.net to get a copy of this message | ||
Well what's the problem with using:
str_replace(' ',' ',$string)
That would replace every occurence of 2 spaces, with 1 space, so if you had a string with 10 spaces,
it would quickly be shrunk down to 1 space.
-B. Claydon
--
http://www.php.net/manual/en/function.eregi-replace.php
http://master.php.net/manage/user-notes.php?action=edit+19805
http://master.php.net/manage/user-notes.php?action=delete+19805
http://master.php.net/manage/user-notes.php?action=reject+19805