Jun 1, 2005 #1 Zych IS-IT--Management Joined Apr 3, 2003 Messages 313 Location US Hello, I have a file that has CR/LF's and I need them replaced with a space or " ". How can I do this? Thanks, Zych
Hello, I have a file that has CR/LF's and I need them replaced with a space or " ". How can I do this? Thanks, Zych
Jun 1, 2005 1 #2 DRJ478 IS-IT--Management Joined Aug 10, 2001 Messages 2,264 Location US Still the same function: Code: str_replace("\n"," ",$str); str_replace("\r"," ",$str); Upvote 0 Downvote
Jun 1, 2005 1 #3 kenrbnsn Technical User Joined Jun 7, 2002 Messages 606 Location US Or Code: str_replac(array("\n","\r"),' ',$str); Untested. Ken Upvote 0 Downvote
Jun 1, 2005 Thread starter #4 Zych IS-IT--Management Joined Apr 3, 2003 Messages 313 Location US Perfect! Thanks, Zych Upvote 0 Downvote