gnupg_setarmor(3) php man page | unix.com

Man Page: gnupg_setarmor

Operating Environment: php

Section: 3

GNUPG_SETARMOR(3)							 1							 GNUPG_SETARMOR(3)

gnupg_setarmor - Toggle armored output

SYNOPSIS
bool gnupg_setarmor (resource $identifier, int $armor)
DESCRIPTION
Toggle the armored output.
PARAMETERS
o $identifier -The gnupg identifier, from a call to gnupg_init(3) or gnupg. o $armor - Pass a non-zero integer-value to this function to enable armored-output (default). Pass 0 to disable armored output.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 Procedural gnupg_setarmor(3) example <?php $res = gnupg_init(); gnupg_setarmor($res,1); // enable armored output; gnupg_setarmor($res,0); // disable armored output; ?> Example #2 OO gnupg_setarmor(3) example <?php $gpg = new gnupg(); $gpg -> setarmor(1); // enable armored output; $gpg -> setarmor(0); // disable armored output; ?> PHP Documentation Group GNUPG_SETARMOR(3)
Related Man Pages
gpgv(1) - suse
gpgv(1) - debian
gpgv2(1) - debian
gpgv(1) - centos
gpgv2(1) - centos
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
Please Welcome Don Cragun as Lead Moderator
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch