fork download
  1. <?php
  2.  
  3. $str = "Hello there".str_repeat(json_decode('"\u00A0"'),10)."Bob!";
  4. echo $str ."\n";
  5. $new_str = preg_replace("/\s+/u", " ", $str);
  6. echo $new_str;
Success #stdin #stdout 0.01s 52488KB
stdin
Standard input is empty
stdout
Hello there          Bob!
Hello there Bob!