Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : Mailparse Functions : mailparse_determine_best_xfer_encoding

mailparse_determine_best_xfer_encoding

Gets the best way of encoding (PHP 4 >= 4.0.7, PECL mailparse:0.9-2.1.1)
string mailparse_determine_best_xfer_encoding ( resource fp )

Figures out the best way of encoding the content read from the given file pointer.

Parameters

fp

A valid file pointer, which must be seek-able.

Return Values

Returns one of the character encodings supported by the mbstring module.

Examples

Example 1133. mailparse_determine_best_xfer_encoding() 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


Change Language


Follow Navioo On Twitter
mailparse_determine_best_xfer_encoding
mailparse_msg_create
mailparse_msg_extract_part_file
mailparse_msg_extract_part
mailparse_msg_extract_whole_part_file
mailparse_msg_free
mailparse_msg_get_part_data
mailparse_msg_get_part
mailparse_msg_get_structure
mailparse_msg_parse_file
mailparse_msg_parse
mailparse_rfc822_parse_addresses
mailparse_stream_encode
mailparse_uudecode_all
eXTReMe Tracker