我有一些文字像$text="--e89a8f234aade3345704b8477b83 Content-Type: text/plain; charset=ISO-8859-1 this is a text. this is a text. --e89a8f234aade3345704b8477b83 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable this is a text.";
PHP刪除內容類型FRM文本
我想要的輸出$output="this is a text. this is a text.";
一個更如: - $text="--14dae9340ba954ae0704b84acde9 Content-Type: text/plain; charset=ISO-8859-1 First Name: aaa Last Name: aaa --14dae9340ba954ae0704b84acde9 Content-Type: text/html; charset=ISO-8859-1 First Name: James Last Name: Cummings --14dae9340b";
輸出應該$output="First Name: aaa Last Name: aaa";
我沒有得到如何做到這一點。
這是多部分郵件正文的一部分,對吧? – Gumbo 2012-02-11 09:03:46
在這種情況下,你應該正確地解析它給出的答案不。 – Gumbo 2012-02-11 11:25:54