1 //截取指定两个字符之间的字符串 2 public function cut($begin,$end,$str){ 3 $b = mb_strpos($str,$begin) + mb_strlen($begin); 4 $e = mb_strpos($str,$end) - $b; 5 return mb_substr($str,$b,$e); 6 } 7
1 //截取指定两个字符之间的字符串 2 public function cut($begin,$end,$str){ 3 $b = mb_strpos($str,$begin) + mb_strlen($begin); 4 $e = mb_strpos($str,$end) - $b; 5 return mb_substr($str,$b,$e); 6 } 7
转载于:https://www.cnblogs.com/joker-one/p/10137333.html