json_encode is returning NULL?

前端 未结 10 2026
[愿得一人]
[愿得一人] 2020-11-22 12:22

For some reason the item \"description\" returns NULL with the following code:



        
10条回答
  •  傲寒
    傲寒 (楼主)
    2020-11-22 12:43

    I had the same problem and the solution was to use my own function instead of json_encode()

    echo '["' . implode('","', $row) . '"]';
    

提交回复
热议问题