How to select domain name from email address using substr() function in php
Below code for extract domain name from an email address using substr() function
1 2 3 4 5 |
<?php $my_email='contact@mydoubts.com'; $result=substr($my_email,strpos($my_email,'@')+1); echo $result; ?> |