note 77015 deleted from function.trim by felipe
| From: | felipe@php.net | Date: | Wed, 06 Aug 2008 22:06:34 +0000 |
| Subject: | note 77015 deleted from function.trim by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-143249@lists.php.net to get a copy of this message | ||
Note Submitter: masteremployment
----
<?php
$string = 'This string has no whitespaces.';
echo ereg_replace( ' +', '', $string ); //note: before '+' we have 2
spaces
?>
Output: This string has no white spaces.