----- Original Message ----- From: WebDev <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php