note 50615 deleted from function.trim by hholzgra
| From: | hholzgra@php.net | Date: | Thu, 02 Aug 2012 12:21:30 +0000 |
| Subject: | note 50615 deleted from function.trim by hholzgra | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189634@lists.php.net to get a copy of this message | ||
Note Submitter:
----
It is important to stress that trim() only removes whitespace characters from the *beginning* and
*end* of str. To remove whitespace characters embedded within a string (newlines, for instance) you
can use str_replace(), searching for and destroying both \n and \r characters.