fork(1) download
  1. <?php
  2.  
  3. $text = "\u{0019}hello - ▪ Locatie: äöéú ||";
  4.  
  5. print($text . "\n\n");
  6.  
  7. //$text = preg_replace('/[^\PCc^\PCn^\PCs]/u', '', $text);
  8.  
  9. //print($text);
  10.  
  11. $ctrls = range(chr(0), chr(31));
  12. $ctrls[] = chr(127);
  13.  
  14. $clean_string = str_replace($ctrls, "", $text);
  15.  
  16. echo "\n\n".$clean_string;
Success #stdin #stdout 0.03s 25916KB
stdin
Standard input is empty
stdout
hello -  ▪ Locatie: äöéú ||



hello -  ▪ Locatie: äöéú ||