note 80019 deleted from function.trim by hholzgra
| From: | hholzgra@php.net | Date: | Thu, 02 Aug 2012 12:26:28 +0000 |
| Subject: | note 80019 deleted from function.trim by hholzgra | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189657@lists.php.net to get a copy of this message | ||
Note Submitter: carl at rusco dot com
----
as mentioned, a str_replace(' ', '', $string) does execute faster than Robin
Leffmann's ereg_replace; however, the regular expression Leffmann supplied has the ability of
also stripping out only -single- whitespaces as by his comment, whereas the blunt str_replace will
simply sweep all of them away, single as cascading. one tool for each job.