$str="河北省乌鲁木齐市新华区"; $t1 = mb_strpos($str,'省'); $t2 = mb_strpos($str,'市'); echo $s = mb_substr($str,$t1+3,($t2)-$t1);
本文标题:php截取省和市之前字符串
本文链接:https://www.haomeiwen.com/subject/jstztctx.html
网友评论