Str replace yapabilirsiniz en hızlı yolu
@ [at] . [dot] şeklinde

Sizin sorduğunuz da substr replace