PHP Str_Replace: @ (At) – String Function

 
    <?php
   $author = "j@w3mentor.com";
   $author = str_replace("@","(at)",$author);
   echo "Contact the author of this article at $author.";
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.