删除修饰符e

This commit is contained in:
LyLme 2022-02-23 22:58:08 +08:00
parent dc8665c442
commit 2698a939a7
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
*/ */
$str=file_get_contents('http://cn.bing.com/HPImageArchive.aspx?idx=0&n=1'); $str=file_get_contents('http://cn.bing.com/HPImageArchive.aspx?idx=0&n=1');
if(preg_match("/<url>(.+?)<\/url>/ies",$str,$matches)){ if(preg_match("/<url>(.+?)<\/url>/is",$str,$matches)){
$imgurl='http://cn.bing.com'.$matches[1]; $imgurl='http://cn.bing.com'.$matches[1];
} }
if($imgurl){ if($imgurl){