Re: replace question

From: Date: Wed, 12 Mar 2003 20:44:08 +0000
Subject: Re: replace question
Groups: php.general 
Request: Send a blank email to php-general+get-139342@lists.php.net to get a copy of this message
----- Original Message ----- From: WebDev <WebDev@browseabit.com> To: <holmes072000@charter.net> Sent: Wednesday, March 12, 2003 1:24 AM Subject: Re: [PHP] replace question Hello How could I know recognize a URL in $a $a contains often a URL htp://www.mysite.com but as well more text how is it possible now to recognize a URL could be in $s and if so we make it a actual html link, for the end user... // start $a= str_replace("Dog", "Cat", $b); $a_tooklinkout = if ($a == foundlink) { echo " <a href=\"$a_tooklinkout " >$c</a>"; } else .... echo "$a"; // end anybody has a tip for me .. > Thank you all

« previous php.general (#139342) next »