Source Code:
(back to article)
<?php $string = "Hallo\r\n Welt!"; $clean_string = str_replace(array("\r", "\n"), '', $string); echo $clean_string; // Ausgabe: "Hallo Welt!"
Result:
Report an issue