gnupg_geterror

(no version information, might be only in CVS)

gnupg_geterror -- Returns the errortext, if a function fails

Описание

string gnupg_geterror ( resource identifier )

Возвращаемые значения

Returns an errortext, if an error has occured, 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();
?>