<p class="sougouContent"> $str = "需要截取的字符串"; <br> <br> 只留下“的字符串”!!! <br> <br> 取该字符串的后四位 怎么取 </p> <br> <h2>回复讨论(解决方案)</h2> <p class="sougouAnswer"> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="sycode" name="code">$str = "需要截取的字符串";iconv_set_encoding("internal_encoding", "gbk");echo iconv_substr($str, -4);</pre><div class="contentsignin">로그인 후 복사</div></div>如果是 utf-8 的就 <br> iconv_set_encoding("internal_encoding", "utf-8"); </p>