natalieG Posted April 30, 2006 Share Posted April 30, 2006 How can I remove the CR amd LF charactes in a variable?Thanks,Jennifer Quote Link to comment https://forums.phpfreaks.com/topic/8775-string-functions/ Share on other sites More sharing options...
Guest askjames01 Posted April 30, 2006 Share Posted April 30, 2006 can you show us the codes? Quote Link to comment https://forums.phpfreaks.com/topic/8775-string-functions/#findComment-32226 Share on other sites More sharing options...
toplay Posted April 30, 2006 Share Posted April 30, 2006 This removes the carriage return and line feeds:$data = str_replace (array("\r", "\n"), '', $data); Quote Link to comment https://forums.phpfreaks.com/topic/8775-string-functions/#findComment-32229 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.