PHP Using Ereg_Replace – String Function

<?php    $s = 'm@t.ca';    echo ereg_replace ('([[:alpha:]]+)@([[:alpha:]]+)\.([[:alpha:]]{2,4})',
      '\1 at \2 dot \3', $s)?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.