The basic function of this is to find any URLs in the block of text and turn them into hyperlinks. It will only find URLs if they are properly formatted, meaning they have a http, https, ftp or ftps.
[code] {$url[0]} ", $text); } else { // if no urls in the text just return the text echo $text; } ?> [/code]
Reference :
https://stackoverflow.com/questions/1960461/convert-plain-text-urls-into-html-hyperlinks-in-php
Comments are closed.