<?php <BR>//页面编码设为utf8 <BR>header('Content-type: text/html; charset=utf-8'); <BR>$luokuan = "ABCDEFG-测试的啊-!!!一二三四五。。"; <BR>$n = mb_strlen("$luokuan","UTF-8"); <BR>//echo $n; <BR>$newluokuan = ""; <BR>for ($i=$n;$i>=0;$i--) <BR><i style="color:transparent">本#文来源gaodai$ma#com搞$$代**码网$</i><button>搞代gaodaima码</button>{ <br><br>$newluokuan.= mb_substr($luokuan,$i,1,'UTF-8'); <br><br>} <BR>echo $newluokuan; <BR>?><BR>