标签:ide foreach str cti video 访问 print nbsp func
public function cs_url(){ set_time_limit(0); $video=Db(‘‘)->field(‘‘)->select(); $trues=[]; $falses=[]; foreach ($video as $v){ // $m3u8=substr($v[‘m3u8‘],5,count($v[‘m3u8‘])-2).‘8‘; $v[‘code‘]=httpcode($v[‘m3u8‘]); // print_r($v[‘code‘]); if($v[‘code‘]==200){ $trues[]=$v; }else{ $falses[]=$v; } } return json(array(‘code‘=>0,‘msg‘=>‘success‘,‘trues‘=>$trues,‘falses‘=>$falses)); }
标签:ide foreach str cti video 访问 print nbsp func
原文地址:https://www.cnblogs.com/zrn-php/p/9361667.html