Hey guys, say someone puts there email into a form:
hello@world.com
How would i get PHP to skim the "hello@" off the input so i'm left with just:
world.com ??
thanks
Getting domain from email address
Moderator: General Moderators
-
penguinboy
- Forum Contributor
- Posts: 171
- Joined: Thu Nov 07, 2002 11:25 am
Code: Select all
<?php
$email = 'hello@world.com';
$temp = explode('@',$email);
$domain = $temp['1'];
?>