Browse posteets
About
Contact us
Log In
Register
View: safe ur mail
safe ur mail
4 months ago
by
sx
<?
function
no_spam
(
$mail
)
{
$str
=
""
;
$a
=
unpack
(
"C*"
,
$mail
)
;
foreach
(
$a
as
$b
)
$str
.=
sprintf
(
"%%%X"
,
$b
)
;
return
$str
;
}
//example
$mail
= no_spam
(
"ma@il.com"
)
;
$link
=
'<a href="mailto:'
.
$mail
.
'">Mail</a>'
;
echo
$link
;
?>
php
spam
View source
0 comment
about "safe ur mail"
Tags
php
spam
0 comment about "safe ur mail"