I have a problem managing a string ..
$email = "email@example.com";
and I need to echo only "test" (excluding @foo.bar ) .
Any idea to do that :roll: ? Thank you
Jay wrote:A variety of methods are open to you. If you just want the user name from an email you can use:
list($user,$domain) = explode("@",$email);
$user will now be "test"
Users browsing this forum: Bing [Bot] and 2 guests