<?php
$string = "sagiwagi@live.com";
$pattern = "/(\@),(\.)/";
$replacement = "at dot";
echo preg_replace($pattern,$replacement,$string); 

?> 