• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • gnupg_geterror

    (PECL gnupg >= 0.1)

    Returns the errortext, if a function fails

    说明

    gnupg_geterror (resource $identifier) : string

    参数

    $identifier

    gnupg 标识符,由对gnupg_init() 或 gnupg 的调用生成。

    返回值

    Returns an errortext, if an error has occurred, otherwise FALSE.

    范例

    Example #1 Procedural gnupg_geterror() example

    <?php
    $res = gnupg_init();
    echo gnupg_geterror($res);
    ?>
    

    Example #2 OO gnupg_geterror() example

    <?php
    $gpg = new gnupg();
    echo $gpg -> geterror();
    ?>
    

    上篇:gnupg_verify()

    下篇:gnupg_sign