Query: gnupg_setarmor
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GNUPG_SETARMOR(3) 1 GNUPG_SETARMOR(3) gnupg_setarmor - Toggle armored outputSYNOPSISbool gnupg_setarmor (resource $identifier, int $armor)DESCRIPTIONToggle the armored output.PARAMETERSo $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 VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #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)