strtok() function performs a similar task to explode()
<?php $anemail = "l@b.ca"; $thetoken = strtok ($anemail, "@"); while ($thetoken){ echo $thetoken . "<br />"; $thetoken = strtok ("@"); } ?>