Hi.
I replace email addresses by an email link:
$text = preg_replace($search, '<a href="mailto:$0">$0</a>', $text);
I want to add an "antispam feature", which would be a function.
But this doesn't work:
$text = preg_replace($search, '<a href="'.antiSpam('mailto:'.$0).'">'.antiSpam($0).'</a>', $text);
PHP doesn't want me to play around with those internal vars:
parse error, unexpected T_LNUMBER, expecting T_VARIABLE or '$'
Do you have an idea how to solve this?
Thank you for any hint.
Fox