PHP Active Clickable Link Function preg_replace Programming Tutorial
Lesson Code: http://www.developphp.com/video/PHP/Active-Clickable-Link-Function-preg_replace-Programming-Tutorial
Learn to use preg_replace() and regular expressions to automatically turn all URL strings in data into active clickable links. Most of the time the string is run through the function on the way out of the database for rendering on a page.
source