1.

Code to break username and hostname from emailaddress

Answer»

Below CODE will helps you to split USERNAME and hostname in two parts. Here in below example we use explode keyword to split emailaddress


< ?php
$TestEmailAddress = "questionsgetproductprice.com";
$TestArray = explode("",$TestEmailAddress);
print_r($TestArray);
?>


And we GET below output from above code
[0]=questions
[1]=getproductprice.com



Discussion

No Comment Found