Return to Snippet

Revision: 52525
at October 25, 2011 22:30 by lewiswalsh


Initial Code
preg_replace('/(https?:\/\/\S+)/', '<a href="\1">\1</a>', $string);

Initial URL


Initial Description


Initial Title
Convert URIs in string to html links

Initial Tags


Initial Language
PHP