abhilashdas Posted February 22, 2007 Share Posted February 22, 2007 Hi, I need to compare the line obtained from the file() function with another line. Bcoz of newline(could be) , I m getting no match. How can I get rid of newline from the end? :-\ Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted February 22, 2007 Share Posted February 22, 2007 Use the trim() function. Ken Quote Link to comment Share on other sites More sharing options...
Orio Posted February 22, 2007 Share Posted February 22, 2007 Use rtrim() Edit- Ken is faster Orio. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.