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