Home > PHP > Function > Mailparse > mailparse_determine_best_xfer_encoding()

mailparse_determine_best_xfer_encoding()

mailparse_determine_best_xfer_encoding - Gets the best way of encoding

Syntax

string mailparse_determine_best_xfer_encoding (resource $fp)

Arguments

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

Description

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

Version

PHP PECL mailparse >= 0.9.0

Return value

Returns one of the character encodings supported by the mbstringmodule.