I want to just get the left half of an email address ( the username part of username@email.com ), so stripping the @ and any characters after it.>
username
username@email.com
$parts=explode('@','username@email.com'); echo $parts[0];// username echo $parts[1];// email.com