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