php获取指定字符串中间的字符

   /*
    * 截取字符串
    */
    public static function cut($begin,$end,$str){
        $b = mb_strpos($str,$begin) + mb_strlen($begin);
        $e = mb_strpos($str,$end) - $b;
        return mb_substr($str,$b,$e);
    }
原文地址:https://www.cnblogs.com/bkhdd/p/15699252.html