fork(2) download
  1. <?php
  2.  
  3.  
  4. $text = "hello!\nthere!";
  5. $text = preg_replace('/[\x00-\x1F\x7F-\xFF]/', '', $text );
  6. $text = preg_replace('/[\n\r]/', ' ', $text);
  7. print($text);
Success #stdin #stdout 0.02s 26432KB
stdin
Standard input is empty
stdout
hello!there!