<span style="font-family: simsun; font-size: 14px; line-height: 23px; text-align: left; ">一数字 </span><br style="font-family: simsun; font-size: 14px; line-height: 23px; text-align: left; " /><span style="font-family: simsun; font-size: 14px; line-height: 23px; text-align: left; ">$str = "2222255555 "; </span><br style="font-family: simsun; font-size: 14px; line-height: 23px; text-align: left; " /><p><span style="font-family: simsun; font-size: 14px; line-height: 23px; text-align: left; ">我需要取得它的后三位.如何做呢?</span></p><p><span style="font-family: simsun; font-size: 14px; line-height: 23px; text-align: left; "><br /></span></p><p><span style="font-family: simsun; font-size: 14px; line-height: 23px; text-align: left; "><span style="font-family: simsun; font-size: 14px; line-height: 23px; text-align: left; ">$rest = substr(string,-3);</span><br /></span></p><p><span style="font-family: simsun; font-size: 14px; line-height: 23px; text-align: left; ">$str%1000</span></p>