RE: [PHP] [url] to html

From: Date: Sat, 25 Jan 2003 01:29:11 +0000
Subject: RE: [PHP] [url] to html
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-133079@lists.php.net to get a copy of this message
> how to chang [url=%link%]%descr%[/url] in <a href=%link%>%descr%</a> $new_str = preg_replace("!\[url=(.*)\](.*)\[/url\]!U","<a href=$1>$2</a>",$old_str); should work... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#133079) next »