<p class="sougouContent"> $str = "需要截取的字符串"; <br> <br> 只留下“的字符串”!!! <br> <br> 取该字符串的后四位 怎么取 </p> <br> <h2>回复讨论(解决方案)</h2> <p class="sougouAnswer"> <pre class="sycode" name="code">$str = "需要截取的字符串";iconv_set_encoding("internal_encoding", "gbk");echo iconv_substr($str, -4);</pre>如果是 utf-8 的就 <br> iconv_set_encoding("internal_encoding", "utf-8"); </p>