Tag archives for php - Page 3


Converting Text into Clickable Link – PHP

preg_replace - Searches $subject for matches to $pattern and replaces them with $replacement. By using the above preg_replace function I have created a simple function which will first find urls inside text and convert all into clickable links PHP Code : function convert_links($text) { $text = preg_replace('#(script|about|applet|activex|chrome):#is', "\1:", $text); $ret =…
Continue Reading
Subscribe and Get Instant Updates via Email
 W3lessons Subscribers