• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • HaruDoc::getEncoder()

    (PECL haru >= 0.0.1)

    Get HaruEncoder instance for the specified encoding

    说明

    HaruDoc::getEncoder(string $encoding): object

    Get the HaruEncoder instance for the specified encoding.

    参数

    $encoding

    The encoding name. See Builtin Encodings for the list of allowed values.

    返回值

    Returns a HaruEncoder instance for the specified encoding.

    错误/异常

    发生错误时抛出HaruException异常。

    参见

    • HaruDoc::setCurrentEncoder() Set the current encoder for the document
    • HaruDoc::getCurrentEncoder() Get HaruEncoder currently used in the document