Php Urlleri Linke Çevirme

<?

$yazi=’bu yazı http://www.codecodu.com’;
$yazi = ereg_replace(”[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]”,
“<a href=\”\\0\”>\\0</a>”, $yazi);
echo $yazi;
?>

21 Ocak 2008 | PHP | Comments

Comments:

You must be logged in to post a comment.