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) - redhat
gpgv(1) - debian
gnupg(3pm) - debian
gpgv(1) - centos
gnupg_sign(3) - php
Similar Topics in the Unix Linux Community
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch
Denial Of Service Attack Update