note 80019 added to function.trim
| From: | carl at rusco dot com | Date: | Mon, 24 Dec 2007 17:53:23 +0000 |
| Subject: | note 80019 added to function.trim | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-133981@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 129.16.214.50
Probable Submitter: 83.227.160.33
----
Manual Page -- http://www.php.net/manual/en/function.trim.php
Edit -- https://master.php.net/note/edit/80019
Del: integrated -- https://master.php.net/note/delete/80019/integrated
Del: useless -- https://master.php.net/note/delete/80019/useless
Del: bad code -- https://master.php.net/note/delete/80019/bad+code
Del: spam -- https://master.php.net/note/delete/80019/spam
Del: non-english -- https://master.php.net/note/delete/80019/non-english
Del: in docs -- https://master.php.net/note/delete/80019/in+docs
Del: other reasons-- https://master.php.net/note/delete/80019
Reject -- https://master.php.net/note/reject/80019
Search -- https://master.php.net/manage/user-notes.php