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


coopster - 10:55 pm on Oct 27, 2003 (gmt 0)


Yeah, I'm sure. Bouncing over from Perl, I made the same mistake as neiljones, here -- chop and chomp change the original variable, but PHP doesn't do that with it's associated trim functions. Similar languages in many ways, but the little things, especially a lot of the Perl shortcuts, can throw you for a loop!


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