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
$text = 'abc@email.com'; $text = str_replace('@email.com','',$text);