gnupg_import
gnupg_keyinfo
GnuPG Functions
PHP Manual

# gnupg_init

(PECL gnupg >= 0.4)

gnupg_init — Initialize a connection

### Descripción

resource gnupg_init ( void )

### Lista de parámetros

This function has no parameters.

### Valores retornados

A GnuPG resource connection used by other GnuPG functions.

### Ejemplos

Example #1 Procedural gnupg_init() example

`<?php
$res = gnupg_init();
?>`

Example #2 OO gnupg initializer example

`<?php
$gpg = new gnupg();
?>`

gnupg_import
gnupg_keyinfo
GnuPG Functions
PHP Manual