Man Page: mailparse_determine_best_xfer_encoding
Operating Environment: php
Section: 3
MAILPARSE_DETERMINE_BEST_XFER_ENCODING(3) 1 MAILPARSE_DETERMINE_BEST_XFER_ENCODING(3) mailparse_determine_best_xfer_encoding - Gets the best way of encodingSYNOPSISstring mailparse_determine_best_xfer_encoding (resource $fp)DESCRIPTIONFigures out the best way of encoding the content read from the given file pointer.PARAMETERSo $fp - A valid file pointer, which must be seek-able.RETURN VALUESReturns one of the character encodings supported by the mbstring module.EXAMPLESExample #1 mailparse_determine_best_xfer_encoding(3) example <?php $fp = fopen('somemail.eml', 'r'); echo 'Best encoding: ' . mailparse_determine_best_xfer_encoding($fp); ?> The above example will output something similar to: Best encoding: 7bit PHP Documentation Group MAILPARSE_DETERMINE_BEST_XFER_ENCODING(3)
| Related Man Pages |
|---|
| mb_detect_encoding(3) - php |
| imagepsencodefont(3) - php |
| mb_detect_order(3) - php |
| mb_encoding_aliases(3) - php |
| mb_strtoupper(3) - php |