note 50615 added to function.trim
| From: | php-general at lists dot php dot net | Date: | Fri, 04 Mar 2005 18:25:27 +0000 |
| Subject: | note 50615 added to function.trim | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85941@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/function.trim.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50615
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50615&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50615&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50615&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50615&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50615&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50615&report=yes
Search -- http://master.php.net/manage/user-notes.php