PHP 7.4.9 Released!


(PECL haru >= 0.0.1)

HaruEncoder::getTypeGet the type of the encoder


HaruEncoder::getType ( void ) : int

Get the type of the encoder.


This function has no parameters.

Return Values

Returns the type of the encoder. The result is one of the following values:

  • HaruEncoder::TYPE_SINGLE_BYTE - the encoder is for single byte characters.
  • HaruEncoder::TYPE_DOUBLE_BYTE - the encoder is for multibyte characters.
  • HaruEncoder::TYPE_UNINITIALIZED - the encoder is not initialized.
  • HaruEncoder::UNKNOWN - the encoder is invalid.


Throws a HaruException on error.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top