How can I remove a new line character from a string using PHP?
Advertisement
Answer
$string = str_replace("n", "", $string); $string = str_replace("r", "", $string);
How can I remove a new line character from a string using PHP?
$string = str_replace("n", "", $string); $string = str_replace("r", "", $string);