I want to get the first bit of the string after the occurrence of the needle like this...
$user = strstr('someemail@yahoo.com', '@', true);
But this only works with PHP Version 5.3.0, I have 5.2.9 Is there a way I can get the same results?
I want to get the first bit of the string after the occurrence of the needle like this...
$user = strstr('someemail@yahoo.com', '@', true);
But this only works with PHP Version 5.3.0, I have 5.2.9 Is there a way I can get the same results?
list($user, $therest) = explode('@',$email);