Home > PHP > Function > Mailparse > mailparse_stream_encode()

mailparse_stream_encode()

mailparse_stream_encode - Streams data from source file pointer, apply encoding and write to destfp

Syntax

bool mailparse_stream_encode (resource $sourcefp, resource $destfp, string $encoding)

Arguments

  • sourcefp - A valid file handle. The file is streamed through the parser.
  • destfp - The destination file handle in which the encoded data will be written.
  • encoding - One of the character encodings supported by the mbstringmodule.

Description

Streams data from the source file pointer, apply encoding and write to the destination file pointer.

Version

PHP PECL mailparse >= 0.9.0

Return value

Returns TRUE on success or FALSE on failure.