hi there,
I want to extract the account or username in an email address (anything before the @ sign).
ie.
how do I just extract the string "darthvader" or "bruce.wayne".
thank you.
echo substr($email, 0, (strpos($email, '@') - 1));
thank you... i knew it had something to do with one or more string functions and positioning.