Bug #15828 Updated: Trim() leaving 1 begining/ending whitespace
| From: | shane dot hochstetler at attbi dot com | Date: | Sat, 02 Mar 2002 18:31:58 +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-1492@lists.php.net to get a copy of this message | ||
ID: 15828
Updated by: shane.hochstetler@attbi.com
Reported By: shane.hochstetler@attbi.com
Status: Bogus
Bug Type: Output Control
Operating System: WindowsXP Pro
PHP Version: 4.1.1
New Comment:
Not sure what it was, but I restarted IIS 5.1 and now it works.
Previous Comments:
------------------------------------------------------------------------
[2002-03-02 12:52:51] shane.hcohstetler@attbi.com
This is using php4isapi.dll
$var = ' content ';
$var = trim($var); // fixed TYPO..
echo "->".$var."<-";
echo "->$var<-";
Output:
-> content <-
-> content <-
leaves 1 whitespace at the beginning and at the end.
and I have RTFM!!!
------------------------------------------------------------------------
[2002-03-02 05:27:59] sander@php.net
RTFM! trim() returns the trimmed string.
$foo = trim($foo) and not trim($foo)
------------------------------------------------------------------------
[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