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
Post a Comment