Copy link to clipboard
Copied
Heya,
Im echoing a piece of text from a recordset which contains a link to a website..
e.g Check out this link http://www.google.com
Is there a way I can code in PHP so that it detects the http:// link and transforms it into a clickable href link
David
Copy link to clipboard
Copied
Yes, you can do it with preg_replace().The difficulty lies in creating a regular expression that finds links accurately.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now