gnupg_geterror
(PECL gnupg >= 0.1)
gnupg_geterror — Returns the errortext, if a function fails
Return Values
Returns an errortext, if an error has occurred, otherwise false.
Examples
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();
?>来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
