array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.gnupg-geterror.php', 1 => 'gnupg_geterror', 2 => 'Returns the errortext, if a function fails', ), 'up' => array ( 0 => 'ref.gnupg.php', 1 => 'GnuPG Функції', ), 'prev' => array ( 0 => 'function.gnupg-getengineinfo.php', 1 => 'gnupg_getengineinfo', ), 'next' => array ( 0 => 'function.gnupg-geterrorinfo.php', 1 => 'gnupg_geterrorinfo', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gnupg/functions/gnupg-geterror.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

gnupg_geterror

(PECL gnupg >= 0.1)

gnupg_geterrorReturns the errortext, if a function fails

Опис

gnupg_geterror(resource $identifier): string|false

Параметри

identifier

Ідентифікатор GnuPG, якого повертає gnupg_init() або gnupg.

Значення, що повертаються

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

Приклади

Приклад #1 Procedural gnupg_geterror() example

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

Приклад #2 OO gnupg_geterror() example

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