示例#1
0
文件: Utils.php 项目: oophp/mailparse
 /**
  * @param resource $filePointer A valid file pointer, which must be seek-able.
  *
  * @return string Returns one of the character encodings supported by the mbstring module.
  */
 public static function determineBestXferEncoding($filePointer)
 {
     return mailparse_determine_best_xfer_encoding($filePointer);
 }
示例#2
0
<?php

$f = fopen('/etc/passwd', 'r');
fclose($f);
var_dump(mailparse_uudecode_all($f));
var_dump(mailparse_determine_best_xfer_encoding($f));
var_dump(mailparse_stream_encode($f, $f, 'utf8'));
示例#3
0
<?php

$fp = fopen('somemail.eml', 'r');
echo 'Best encoding: ' . mailparse_determine_best_xfer_encoding($fp);