Mega Code Archive

 
Categories / Php / Strings
 

Strtok() function performs a similar task to explode()

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