Bug #15828 Updated: Trim() leaving 1 begining/ending whitespace
| From: | sander@php.net | Date: | Sat, 02 Mar 2002 10:27:59 +0000 |
| Subject: | Bug #15828 Updated: Trim() leaving 1 begining/ending whitespace | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-1459@lists.php.net to get a copy of this message | ||
ID: 15828
Updated by: sander@php.net
Reported By: shane.hochstetler@attbi.com
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: WindowsXP Pro
PHP Version: 4.1.1
New Comment:
RTFM! trim() returns the trimmed string.
$foo = trim($foo) and not trim($foo)
Previous Comments:
------------------------------------------------------------------------
[2002-03-02 03:09:45] shane.hochstetler@attbi.com
This is using php4isapi.dll
$var = ' content ';
trim($var);
echo "->".$var."<-";
echo "->$var<-";
Output:
-> content <-
-> content <-
leaves 1 whitespace at the beginning and at the end.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15828&edit=1