JavaScript Editor Javascript debugger     Website design 

gnupg_geterror

Returns the errortext, if a function fails (PECL gnupg:0.1-1.3.1)
string gnupg_geterror ( resource identifier )

Return Values

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

Examples

Example 844. Procedural gnupg_geterror() example

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


Example 845. OO gnupg_geterror() example

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