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) –
你需要刪除的「\」在哪裏? –