GNUPG_GETERROR(3) 1 GNUPG_GETERROR(3)
gnupg_geterror - Returns the errortext, if a function fails
SYNOPSIS
string gnupg_geterror (resource $identifier)
DESCRIPTION
PARAMETERS
o $identifier
-The gnupg identifier, from a call to gnupg_init(3) or gnupg.
RETURN VALUES
Returns an errortext, if an error has occurred, otherwise FALSE.
EXAMPLES
Example #1
Procedural gnupg_geterror(3) example
<?php
$res = gnupg_init();
echo gnupg_geterror($res);
?>
Example #2
OO gnupg_geterror(3) example
<?php
$gpg = new gnupg();
echo $gpg -> geterror();
?>
PHP Documentation Group GNUPG_GETERROR(3)