Basically what I want to do is display an email using javascript to bring the parts together and form a complete email address that cannot be visible by email harvesters.
I would like to take an email address eg [email protected] and break it to: $variable1 = "info"; $variable2 = "thiscompany.com";
All this done in PHP.
Regards, JB
list($variable1, $variable2) = explode('@','[email protected]');
$parts = explode("@", $email_address);
Assuming that $email_address = '[email protected]'
then $parts[0] == 'info'
and $parts[1] == 'thiscompany.com'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With