Jump to content


Photo

String Functions


  • Please log in to reply
2 replies to this topic

#1 natalieG

natalieG
  • Members
  • PipPipPip
  • Advanced Member
  • 63 posts

Posted 30 April 2006 - 06:46 PM

How can I remove the CR amd LF charactes in a variable?

Thanks,

Jennifer

#2 Guest_askjames01_*

Guest_askjames01_*
  • Guests

Posted 30 April 2006 - 07:02 PM

can you show us the codes?

#3 toplay

toplay
  • Staff Alumni
  • Advanced Member
  • 973 posts

Posted 30 April 2006 - 07:10 PM

This removes the carriage return and line feeds:

$data = str_replace (array("\r", "\n"), '', $data);






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users