GNUPG_EXPORT(3) 1 GNUPG_EXPORT(3)
gnupg_export - Exports a key
SYNOPSIS
string gnupg_export (resource $identifier, string $fingerprint)
DESCRIPTION
Exports the key $fingerprint.
PARAMETERS
o $identifier
-The gnupg identifier, from a call to gnupg_init(3) or gnupg.
o $fingerprint
-The fingerprint key.
RETURN VALUES
On success, this function returns the keydata. On failure, this function returns FALSE.
EXAMPLES
Example #1
Procedural gnupg_export(3) example
<?php
$res = gnupg_init();
$export = gnupg_export($res,"8660281B6051D071D94B5B230549F9DC851566DC");
echo $export;
?>
Example #2
OO gnupg_export(3) example
<?php
$gpg = new gnupg();
$export = $gpg -> export("8660281B6051D071D94B5B230549F9DC851566DC");
?>
PHP Documentation Group GNUPG_EXPORT(3)