fork(6) download
  1. <?php
  2. $q = "ball ball foo bar bar baz";
  3. $q = preg_replace("/\b(\w+)\s+\\1\b/i", "$1", $q);
  4. echo $q;
  5. ?>
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
ball foo bar baz