$anemail = "l@b.ca"; $thetoken = strtok ($anemail, "@"); while ($thetoken){ echo $thetoken . ""; $thetoken = strtok ("@"); } ?>