parse error
Posted: Tue Mar 07, 2006 5:45 am
I don't understand this parse error:
It says 'unexpected '[' on line 258' -- the str_replace line
Code: Select all
function reverseURLTags($text){
if(preg_match("#<a href=\"(.+?)\" target=\"_blank\">(.+?)</a>#im,$text,$rurls)){
return str_replace($rurls[0],"[url={$rurls[1]}]{$rurls[2]}[/url]",$text);
}
}