How to split a string in php twice.... Help

Jangga

Junior Member
Joined
Aug 8, 2016
Messages
196
Reaction score
11
Hello guys, I would love to split a string(an email) such that I would be able to get the 'gmail' or 'yahoo' or 'outlook' out of it

What I got now:
Code:
$geta=explode('.', [email protected]);
$getb=explode('@', $geta["0"]);
echo $get["1"]:

But it ain't working
 
Thanks alot man
 
Back
Top