代码:
function json(){
$i=0;
foreach ($temp as $v) {
$result[$i]=array(
"name"=>$v,
"size"=>$size,
"time"=>$date,
"url"=>$a,
);
$i=$i+1;
}
return $result;
}
}
$result=json();
echo json_encode($result,JSON_UNESCAPED_UNICODE);//JSON_UNESCAPED_UNICODE让中文不编码
版权属于:小小窝/禾下月
本文链接:https://hxyxyz.top/index.php/%E6%8A%80%E6%9C%AF/195.html
本站文章采用 知识共享署名4.0 国际许可协议 进行许可,请在转载时注明出处及本声明!