natalieG Posted April 30, 2006 Share Posted April 30, 2006 How can I remove the CR amd LF charactes in a variable?Thanks,Jennifer 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? 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); Link to comment https://forums.phpfreaks.com/topic/8775-string-functions/#findComment-32229 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.