$str = "需要截取的字符串";
只留下“的字符串”!!!
取该字符串的后四位 怎么取
------解决方案--------------------
$str = "需要截取的字符串";如果是 utf-8 的就
iconv_set_encoding("internal_encoding", "gbk");
echo iconv_substr($str, -4);
iconv_set_encoding("internal_encoding", "utf-8");
$str = "需要截取的字符串";如果是 utf-8 的就
iconv_set_encoding("internal_encoding", "gbk");
echo iconv_substr($str, -4);