Nope. Spam-bots do not see your PHP code. Rather, they see the resulting, rendered HTML.
A workaround using code similar to what you have shown would be to implement the spam-bot blocker in client-side JavaScript. For example:
Code:
<script language="javascript">
function ShowEmail ( name, domain, extension, link ) {
document.write ( '<a href="mailto:' + name + '@' + domain + '.' + extension + '">' + link + '</a>' );
}
</script>
. . .
<body>
<script language="javascript">ShowEmail ( 'brown', 'clan-elite', 'org', 'Contact' );</script>
</body>
There are better methods of hiding emails from spam-bots. I’ll leave that to someone else to explain though, I’m off to bed.
Bookmarks