title: How to Trim special Character \r in php
body: <p>Can anybody tell me here how to trim the special character <code>\r\n</code> or \n in php? I know there is already trim function in php but that is not working. </p>
  
  <p>While copying the email address from some other place and copying it into the excel field and during uploading i am getting the invalid email address error. But the email id is correct just due to the special character <code>\r</code> the error is showing. Any help will be appreciated.</p>
  
  <p>Thanks in advance</p>