I found out how to linkify a URL in php here, but does anyone know how to do this same concept with an email address? Thanks!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Using preg_replace would be ideal.
gar_onn’s answer wouldnt work, because if i wrote a sentance like: “I use asterisk@home. It’s pretty neat”, the whole string would be linkified.
Something like this would be more ideal :