note 42978 deleted from function.preg-replace by aidan
| From: | aidan@php.net | Date: | Sun, 22 Aug 2004 13:10:10 +0000 |
| Subject: | note 42978 deleted from function.preg-replace by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75108@lists.php.net to get a copy of this message | ||
Note Submitter: nobody
----
To remove excess spaces, try:
<?php
preg_replace('#\s{2,}#s', ' ', $str);
?>