How to remove backslash on json_encode() function?

前端 未结 10 1844
逝去的感伤
逝去的感伤 2020-12-03 04:42

How to remove the (\\)backslash on a string? when using echo json_encode() ?

For example:



        
10条回答
  •  时光说笑
    2020-12-03 05:11

    I use the following to remove the slashes

    echo json_decode($mystring, JSON_UNESCAPED_SLASHES);
    

提交回复
热议问题