0
在我的PHP代码在PHP代码,我怎么能删除换行符
$sql = "SELECT a.SEQ, a.DPCODE, a.SUBJECT, CONCAT_WS('~',a.SDATE, a.EDATE) AS SDATE, b.content, concat(replace(c.filepath,'E:/WWW','http://myhome.com/'),c.filelocalnm) as filename";
$sql .= " FROM PJ_EXHIBIT a LEFT JOIN collection.exhibit b ON a.SEQ=b.seqno LEFT JOIN sy_file c ON a.attach_file = c.SEQ";
与json_encode
,它返回:
我想删除 '\'。
的可能的复制[取下串新线(http://stackoverflow.com/questions/3760816/remove-new-lines-from-string) –
你需要删除的“\”在哪里? –