如果失败,file_get_contents() 将返回 FALSE。 // 先关闭错误展示 error_reporting(0); if($json === false){ // 跳过本次循环 continue; }
如果失败,file_get_contents() 将返回
FALSE
。