Source Code:
(back to article)
<?php $string = "Hallo\r\n Welt!"; $clean_string = preg_replace('/[\x00-\x1F\x7F]/', '', $string); echo $clean_string; // Ausgabe: "Hallo Welt!"
Result:
Report an issue