Bug #15828: Trim() leaving 1 begining/ending whitespace
| From: | shane dot hochstetler at attbi dot com | Date: | Sat, 02 Mar 2002 08:09:46 +0000 |
| Subject: | Bug #15828: Trim() leaving 1 begining/ending whitespace | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-1458@lists.php.net to get a copy of this message | ||
From: shane.hochstetler@attbi.com
Operating system: WindowsXP Pro
PHP version: 4.1.1
PHP Bug Type: Output Control
Bug description: Trim() leaving 1 begining/ending whitespace
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 bug report at http://bugs.php.net/?id=15828&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=15828&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15828&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15828&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15828&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15828&r=support
Expected behavior: http://bugs.php.net/fix.php?id=15828&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15828&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15828&r=submittedtwice