I need to remove newline character using PHP from user input, so the input will show in one line for my CSV file. I’ve tried to use nl2br and str_replace the br tag but it doesn’t work. At the end, i need to use regular expression to solve this.
To remove newline character in PHP, follow the steps below:-
Continue reading How to remove newline character in PHP »