Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Trim not working. why?


coopster - 9:39 pm on Oct 27, 2003 (gmt 0)


Just leave the second optional parameter (\n) off. rtrim [us3.php.net] will strip that off by default.


rtrim($name);

As you have already tried that, I would say there is something fishy going on in your text file or server configuration. Try looking into the auto_detect_line_endings [us3.php.net]


Thread source:: http://www.webmasterworld.com/php/1936.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com