<html>(.*)</html> 这样根本不行,因为源代码里面有换行ch(13),还有一些 tab键,应该这样:
preg_match('/<html>([\s\S]*)</html>/iU',$get,$data);
转载于:https://www.cnblogs.com/lxdd/p/3966156.html
<html>(.*)</html> 这样根本不行,因为源代码里面有换行ch(13),还有一些 tab键,应该这样:
preg_match('/<html>([\s\S]*)</html>/iU',$get,$data);
转载于:https://www.cnblogs.com/lxdd/p/3966156.html