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