php json_encode is encoding the same data twice

后端 未结 3 1898
长情又很酷
长情又很酷 2021-01-02 16:32

I am getting some data from a database and am encoding it to json:

$json = \"\";
if($result = $dbc->query($query)) {
    $num = $result->num_rows;
             


        
3条回答
提交回复
热议问题