php json_encode 斜杠 反斜杠 转义处理
摘要:
$data = str_replace("\\\\n", "\\n", \jsonEncode($data)); // \\n转为\n $data = str_replace("\\/", "/", json_encode($data)); 阅读全文
posted @ 2023-02-28 08:14 小馬過河﹎ 阅读(373) 评论(0) 推荐(0)
posted @ 2023-02-28 08:14 小馬過河﹎ 阅读(373) 评论(0) 推荐(0)