使用substr 函数截取字符串最后一个字符,如下所示: <?php $str = "ad34170001"; echo substr($str, -1);. 注意:使用substr 函数,如果字符串是中文 ...
確定! 回上一頁