hi all.
i am new at such a good place. thanks to admins and mods and all.
here is my question..
<?php
function makeLink($it) {
$mylink = str_replace(" ","+",$it);
return "<a href=\"show.php?x=$mylink\">$it</a>";
}
$mytext_without_link = "bla bla bla *this will be link* bla bla bla *this will also be a link*";
$mytext_with_link = eregi_replace("(\*)([a-zA-Z0-9. +_&%?/-]+)(\*)",makeLink('\\2'),$mytext_without_link);
echo $mytext_with_link;
?>
my script works without >> $mylink = str_replace(" ","+",$it);
could you help me