<?php $str = ‘人类补完计划‘; $strm = ‘‘; $len = mb_strlen($str,‘utf8‘); for($i=$len;$i>=0;$i--){ $strm .= mb_substr($str,$i,1,‘utf8‘); } echo $strm; ?>
时间: 2024-10-13 11:26:07
<?php $str = ‘人类补完计划‘; $strm = ‘‘; $len = mb_strlen($str,‘utf8‘); for($i=$len;$i>=0;$i--){ $strm .= mb_substr($str,$i,1,‘utf8‘); } echo $strm; ?>