pop3attachment.class.php
来自「有关ajax的开发方法以及源码,希望对大家有所帮组。」· PHP 代码 · 共 27 行
PHP
27 行
<?php
class Pop3Attachment {
var $contentType;
var $fileName;
var $data;
function Pop3Attachment($attachment) {
foreach ($attachment as $atc) {
$ctparts = split(";",$atc["content-type"]);
if (count($ctparts) > 1) {
$this->contentType = trim($ctparts[0]);
}
foreach ($ctparts as $ctpart) {
if (strstr($ctpart,"name=")) {
$filename = split("=",$ctpart);
$this->fileName = str_replace("\"","",$filename[1]);
}
}
}
$this->data = trim($attachment['content']);
}
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?