PHP JSON无法显示中文

在json_encode添加第二个参数即可

while ($rows=mysqli_fetch_assoc($result)) {
   
            $array[] = $rows;
        }
$res = json_encode(

你可能感兴趣的:(php)