Bug #15828 Updated: Trim() leaving 1 begining/ending whitespace
ID: 15828 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] RTFM! trim() returns the trimmed string. $foo = trim($foo) and not trim($foo) [2002-03-02 03:09:45] [EMAIL PROTECTED] 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
Bug #15828 Updated: Trim() leaving 1 begining/ending whitespace
ID: 15828 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Output Control Operating System: WindowsXP Pro PHP Version: 4.1.1 New Comment: 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!!! Previous Comments: [2002-03-02 05:27:59] [EMAIL PROTECTED] RTFM! trim() returns the trimmed string. $foo = trim($foo) and not trim($foo) [2002-03-02 03:09:45] [EMAIL PROTECTED] 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
Bug #15828 Updated: Trim() leaving 1 begining/ending whitespace
ID: 15828 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -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] [EMAIL PROTECTED] 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