Copy code The code is as follows:
//Set page encoding to utf8
header ('Content-type: text/html; charset=utf-8');
$luokuan = "ABCDEFG-tested-!!! One, two, three, four, five...";
$n = mb_strlen ("$luokuan","UTF-8");
//echo $n;
$newluokuan = "";
for ($i=$n;$i>=0;$i --)
{
$newluokuan.= mb_substr($luokuan,$i,1,'UTF-8');
}
echo $newluokuan;
?>
http://www.bkjia.com/PHPjc/319701.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/319701.htmlTechArticleCopy the code as follows: ?php //Set the page encoding to utf8 header('Content-type: text/html ; charset=utf-8'); $luokuan = "ABCDEFG-tested-!!! One, two, three, four, five..."; $n = mb_strle...