gnupg_geterror

(PECL gnupg >= 0.1)

gnupg_geterrorReturns the errortext, if a function fails

说锟斤拷

gnupg_geterror ( resource $identifier ) : string

锟斤拷锟斤拷

identifier

gnupg 锟斤拷识锟斤拷锟斤拷锟缴讹拷 gnupg_init() 锟斤拷 gnupg 锟侥碉拷锟斤拷锟斤拷锟缴★拷

锟斤拷锟斤拷值

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

锟斤拷锟斤拷

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();
?>