fork download
  1. <?php
  2. $string = "sagiwagi@live.com";
  3. $pattern = "/(\@),(\.)/";
  4. $replacement = "at dot";
  5. echo preg_replace($pattern,$replacement,$string);
  6.  
  7. ?>
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
sagiwagi@live.com