Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是新手开发人员,我在自己的PHP 应用程序中使用imap 和 gmail。
问题是,当我尝试解码 gmail html 消息(特别是 google+/linkedin)时。它以原始(编码)格式显示。我想以标准格式显示它,因为它显示在 GMAIL 上。
例如 :
GMAIL 上的原始消息: 图片(单击此处)
我的应用程序上的消息: 图片(单击此处)
此致,
这看起来像 base64 编码。所以解码吧!
$hopefullyTheHtml = base64_decode($string);
http://php.net/manual/en/function.base64-decode.php