How to Replace Newline with Space Using PHP
Sometimes you need to replace newline (i.e. \r\n) with space. While I am trying to do this in my website I wonder why str_replace function doesn’t work.
Example:
Sometimes you need to replace newline (i.e. \r\n) with space. While I am trying to do this in my website I wonder why str_replace function doesn’t work.
Example: