<?php

$re = '/(@)|(?!^)\G\w/'; 
$str = "email@xyz.com"; 
$subst = "$1x"; 
echo $result = preg_replace($re, $subst, $str);