regex - PHP - Get string from Email address -


i have email address:

 abc123@domain.com 

i want string "domain.com" php please me!

you can use explode, see http://www.php.net/manual/en/function.explode.php.

$array = explode("@", "abc123@domain.com"); echo $array[1]; // domain.com 

Comments

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

php array slice every 2th rule -