how remove the backslash (“\”) in the json response using php?

前端 未结 5 750
伪装坚强ぢ
伪装坚强ぢ 2020-12-30 12:07

I try to add a row of mysql query into JSON whit php. I use this code:

public function lugaresCercanos($lng, $lat, $distance){
$result=mysql_query(\"SELECT n         


        
5条回答
  •  悲&欢浪女
    2020-12-30 12:52

    Stop double-encoding your data. Put everything together in one large structure and then encode only that.

提交回复
热议问题