Advertisement
Guest User

Get email domain name

a guest
Jun 22nd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.10 KB | None | 0 0
  1. <?php
  2. if( preg_match( '/.*.\@(.*)/', 'example@yahoo.com', $match ) ) {
  3.     print_r( $match[ 1 ] );
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement