"; ?>
EMail 地址转 Ascii -- 将EMail地址转换为Ascii
<?php $result=array(); for($i=0,$l=mb_strlen($email,'utf-8');$i<$l;++$i){ $result[]="&#".uniord(mb_substr($email,$i,1,'utf-8')); } echo "<pre>".join(";",$result).";</pre>"; ?>
<script type="text/javascript"> var s = "<?php echo $email;?>"; var as = ""; for(var a = 0; a<s.length; a++){ as += "&#"+s.charCodeAt(a)+";"; } document.write("<pre>"+as+"</pre>"); </script>
email2ascii.txt -- 右键另存下载